]> granicus.if.org Git - apache/commitdiff
Merge r1753257 from trunk:
authorJim Jagielski <jim@apache.org>
Thu, 25 Aug 2016 12:50:42 +0000 (12:50 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 25 Aug 2016 12:50:42 +0000 (12:50 +0000)
Restore 'HEAD' method as a special case of GET with the common ID
Submitted by: wrowe
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1757672 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/http/http_protocol.c

diff --git a/STATUS b/STATUS
index e30c2cae3e9fdf8f10705dfe993c6aad1a699eec..c37f0632930ebaf6ae1be8250e836c61f354c5aa 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -117,13 +117,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_http: Add the HEAD method to the lookup hash for completeness.
-      Trunk version of patch:
-         http://svn.apache.org/r1753257
-      Backport version for 2.4.x of patch:
-         Trunk version of patch works
-      +1: wrowe, ylavic, sf
-
   *) mod_dav: fix typo (missing '/') in closing tag (follow up to r1756560
      which backported r1746207 in 2.4.24). Plus r1748155 to fix compiling with
      clang.
index 582d87e3b0429e44f843464b2e459815b4883407..7c465777f27fff7d5e6ec714dccc49a8677ad199 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);