]> granicus.if.org Git - apache/commitdiff
Restore 'HEAD' method as a special case of GET with the common ID
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jul 2016 16:01:21 +0000 (16:01 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jul 2016 16:01:21 +0000 (16:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1753257 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 6a1ea1855aab2aad700d5226bd99f198a4b59b47..17a6e27c24d0ca53581f550d4405e828b9cee75c 100644 (file)
@@ -688,8 +688,11 @@ AP_DECLARE(void) ap_method_registry_init(apr_pool_t *p)
                               apr_pool_cleanup_null);
 
     /* put all the standard methods into the registry hash to ease the
-       mapping operations between name and number */
+     * mapping operations between name and number
+     * HEAD is a special-instance of the GET method and shares the same ID
+     */
     register_one_method(p, "GET", M_GET);
+    register_one_method(p, "HEAD", M_GET);
     register_one_method(p, "PUT", M_PUT);
     register_one_method(p, "POST", M_POST);
     register_one_method(p, "DELETE", M_DELETE);