From: William A. Rowe Jr Date: Mon, 18 Jul 2016 16:01:21 +0000 (+0000) Subject: Restore 'HEAD' method as a special case of GET with the common ID X-Git-Tag: 2.5.0-alpha~1394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26e6eaab3e0190b4ea0a3b44dfbd9efd643974fd;p=apache Restore 'HEAD' method as a special case of GET with the common ID git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1753257 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 6a1ea1855a..17a6e27c24 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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);