This is an automated email from the ASF dual-hosted git repository.

amc pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  b0ac48f   TS-4098: Fix remap filtering for nonstandard methods This 
closes #1010.
b0ac48f is described below

commit b0ac48f0552b5810319442e2827fc3a595d429aa
Author: Quinn <[email protected]>
AuthorDate: Mon Sep 12 18:04:33 2016 -0500

    TS-4098: Fix remap filtering for nonstandard methods
    This closes #1010.
---
 proxy/http/remap/UrlRewrite.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proxy/http/remap/UrlRewrite.cc b/proxy/http/remap/UrlRewrite.cc
index b7fd4b3..4e0f439 100644
--- a/proxy/http/remap/UrlRewrite.cc
+++ b/proxy/http/remap/UrlRewrite.cc
@@ -407,6 +407,8 @@ UrlRewrite::PerformACLFiltering(HttpTransact::State *s, 
url_mapping *map)
         if (method_wksidx != -1) {
           match = rp->standard_method_lookup[method_wksidx];
         } else if (!rp->nonstandard_methods.empty()) {
+          match = false;
+        } else {
           int method_str_len;
           const char *method_str = 
s->hdr_info.client_request.method_get(&method_str_len);
           match                  = 
rp->nonstandard_methods.count(std::string(method_str, method_str_len));

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to