diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2015-04-28 22:06:31 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2015-04-28 22:06:31 +0200 |
commit | 080d5e16db802902200a9ce5b6c40f8f1fdc1f73 (patch) | |
tree | 69845ca856fe6817f103544e88541d80411fe9a8 /modules/http/http_protocol.c | |
parent | cb35beef2a938b80c9e4b5d6a408eca437aa74db (diff) | |
download | apache2-080d5e16db802902200a9ce5b6c40f8f1fdc1f73.tar.gz |
Imported Upstream version 2.4.12
Diffstat (limited to 'modules/http/http_protocol.c')
-rw-r--r-- | modules/http/http_protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index fe2cc208..a7f30fcf 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1608,8 +1608,8 @@ AP_DECLARE(void) ap_method_list_add(ap_method_list_t *l, const char *method) * bitmask. */ methnum = ap_method_number_of(method); - l->method_mask |= (AP_METHOD_BIT << methnum); if (methnum != M_INVALID) { + l->method_mask |= (AP_METHOD_BIT << methnum); return; } /* @@ -1641,15 +1641,15 @@ AP_DECLARE(void) ap_method_list_remove(ap_method_list_t *l, * by a module, use the bitmask. */ methnum = ap_method_number_of(method); - l->method_mask |= ~(AP_METHOD_BIT << methnum); if (methnum != M_INVALID) { + l->method_mask &= ~(AP_METHOD_BIT << methnum); return; } /* * Otherwise, see if the method name is in the array of string names. */ if (l->method_list->nelts != 0) { - register int i, j, k; + int i, j, k; methods = (char **)l->method_list->elts; for (i = 0; i < l->method_list->nelts; ) { if (strcmp(method, methods[i]) == 0) { |