From 0cdeea46f3b78fa90ad546f310ae53bb02da64db Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Mon, 25 Mar 2002 01:10:06 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 5 +++++ 1 file changed, 5 insertions(+) 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' -- 2.40.0