From: Fabian Keil Date: Sun, 4 Sep 2011 11:37:05 +0000 (+0000) Subject: Constify the known_http_methods pointers in unknown_method() X-Git-Tag: v_3_0_18~103 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/@proxy-info-url@?a=commitdiff_plain;h=2ce1c56a208dfde0a2a91791a9bc12eb7c4353e2;p=privoxy.git Constify the known_http_methods pointers in unknown_method() --- diff --git a/urlmatch.c b/urlmatch.c index 6cb6013f..3dead33b 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.61 2011/05/22 10:25:26 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.62 2011/09/04 11:10:56 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -411,7 +411,7 @@ jb_err parse_http_url(const char *url, struct http_request *http, int require_pr *********************************************************************/ static int unknown_method(const char *method) { - static const char *known_http_methods[] = { + static const char * const known_http_methods[] = { /* Basic HTTP request type */ "GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "TRACE", "CONNECT", /* webDAV extensions (RFC2518) */