From 26e6eaab3e0190b4ea0a3b44dfbd9efd643974fd Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 18 Jul 2016 16:01:21 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 6a1ea1855aa..17a6e27c24d 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); -- 2.47.3