]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
A whole lotta nope, if you implement HTCPCP then register your methods in init
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jul 2016 16:20:27 +0000 (16:20 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 18 Jul 2016 16:20:27 +0000 (16:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1753263 13f79535-47bb-0310-9956-ffa450edef68

include/httpd.h
modules/http/http_protocol.c

index 2a326dfe3819e12d7125144057aeb9309b9630d1..eba7b5307631a4b70d85e4770f0418994ed657dc 100644 (file)
@@ -612,9 +612,15 @@ AP_DECLARE(const char *) ap_get_server_built(void);
 #define M_MKACTIVITY            23
 #define M_BASELINE_CONTROL      24
 #define M_MERGE                 25
-#define M_INVALID               26      /** no valid method */
-#define M_BREW                  27      /** RFC 2324: HTCPCP/1.0 */
-#define M_WHEN                  28      /** RFC 2324: HTCPCP/1.0 */
+/* Additional methods must be registered by the implementor, we have only
+ * room for 64 bit-wise methods available, so do not squander them (more of
+ * the above methods should probably move here)
+ */
+/* #define M_BREW                  nn */     /** RFC 2324: HTCPCP/1.0 */
+/* #define M_WHEN                  nn */     /** RFC 2324: HTCPCP/1.0 */
+#define M_INVALID               26      /** invalid method value terminates the
+                                         *  listed ap_method_registry_init()
+                                         */
 
 /**
  * METHODS needs to be equal to the number of bits
index 17a6e27c24d0ca53581f550d4405e828b9cee75c..b590fa5f29f2e621ed8fa877a31ad8441af6f530 100644 (file)
@@ -718,8 +718,6 @@ AP_DECLARE(void) ap_method_registry_init(apr_pool_t *p)
     register_one_method(p, "MKACTIVITY", M_MKACTIVITY);
     register_one_method(p, "BASELINE-CONTROL", M_BASELINE_CONTROL);
     register_one_method(p, "MERGE", M_MERGE);
-    register_one_method(p, "BREW", M_BREW);
-    register_one_method(p, "WHEN", M_WHEN);
 }
 
 AP_DECLARE(int) ap_method_register(apr_pool_t *p, const char *methname)