From: Cliff Woolley Date: Mon, 25 Mar 2002 01:10:06 +0000 (+0000) Subject: What, we don't support HEAD requests now? ;) X-Git-Tag: 2.0.34~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cdeea46f3b78fa90ad546f310ae53bb02da64db;p=apache What, we don't support HEAD requests now? ;) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94154 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index f81efefad3..56a00cac9a 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -457,6 +457,11 @@ static int lookup_builtin_method(const char *method, apr_size_t len) case 4: switch (method[0]) { + case 'H': + return (method[1] == 'E' + && method[2] == 'A' + && method[3] == 'D' + ? M_GET : UNKNOWN_METHOD); case 'P': return (method[1] == 'O' && method[2] == 'S'