summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-08-07 18:37:04 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-08-07 18:37:04 +0000
commitcd6a44feefda707655d1bf5debc128be5780eb6c (patch)
tree4bdc28ba3d3641996a70aef05668ef08f71782df
parent9fc8386d2070eae00ef21e8ca05a4f35ead79d2d (diff)
downloadhttpd-cd6a44feefda707655d1bf5debc128be5780eb6c.tar.gz
Must return something in the 2^32 domain (preferably one, as shown here),
not in the 2^64 domain. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89998 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/http/http_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c
index a2e0fa370b..d7897a31fd 100644
--- a/modules/http/http_protocol.c
+++ b/modules/http/http_protocol.c
@@ -2053,7 +2053,7 @@ AP_DECLARE(int) ap_method_in_list(ap_method_list_t *l, const char *method)
*/
methnum = ap_method_number_of(method);
if (methnum != M_INVALID) {
- return (l->method_mask & (1 << methnum));
+ return !!(l->method_mask & (1 << methnum));
}
/*
* Otherwise, see if the method name is in the array or string names