]> granicus.if.org Git - apache/commitdiff
What, we don't support HEAD requests now? ;)
authorCliff Woolley <jwoolley@apache.org>
Mon, 25 Mar 2002 01:10:06 +0000 (01:10 +0000)
committerCliff Woolley <jwoolley@apache.org>
Mon, 25 Mar 2002 01:10:06 +0000 (01:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94154 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index f81efefad3c440015b446e8b0a6295ae3a377e0d..56a00cac9afe6f3bc56df74893328c9d01e9a9fe 100644 (file)
@@ -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'