You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2016/07/18 16:01:21 UTC

svn commit: r1753257 - /httpd/httpd/trunk/modules/http/http_protocol.c

Author: wrowe
Date: Mon Jul 18 16:01:21 2016
New Revision: 1753257

URL: http://svn.apache.org/viewvc?rev=1753257&view=rev
Log:
Restore 'HEAD' method as a special case of GET with the common ID

Modified:
    httpd/httpd/trunk/modules/http/http_protocol.c

Modified: httpd/httpd/trunk/modules/http/http_protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_protocol.c?rev=1753257&r1=1753256&r2=1753257&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_protocol.c (original)
+++ httpd/httpd/trunk/modules/http/http_protocol.c Mon Jul 18 16:01:21 2016
@@ -688,8 +688,11 @@ AP_DECLARE(void) ap_method_registry_init
                               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);