Repository: trafficserver Updated Branches: refs/heads/6.0.x 64a86b283 -> f271f6b1c
TS-3897: Getting 404s with regex_map Change int to bool (cherry picked from commit 4707d3f1bfef318502e17c456ac0cea15552169d) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f271f6b1 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f271f6b1 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f271f6b1 Branch: refs/heads/6.0.x Commit: f271f6b1cc0c16e6df83f382cc9e0a08a79260f7 Parents: 64a86b2 Author: Bryan Call <[email protected]> Authored: Thu Sep 10 09:20:16 2015 -0700 Committer: Bryan Call <[email protected]> Committed: Thu Sep 10 09:23:39 2015 -0700 ---------------------------------------------------------------------- proxy/http/remap/UrlRewrite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f271f6b1/proxy/http/remap/UrlRewrite.cc ---------------------------------------------------------------------- diff --git a/proxy/http/remap/UrlRewrite.cc b/proxy/http/remap/UrlRewrite.cc index 0e3af26..a152b14 100644 --- a/proxy/http/remap/UrlRewrite.cc +++ b/proxy/http/remap/UrlRewrite.cc @@ -894,7 +894,7 @@ UrlRewrite::_regexMappingLookup(RegexMappingList ®ex_mappings, URL *request_u } int matches_info[MAX_REGEX_SUBS * 3]; - int match_result = list_iter->regular_expression.exec(request_host, request_host_len, matches_info, countof(matches_info)); + bool match_result = list_iter->regular_expression.exec(request_host, request_host_len, matches_info, countof(matches_info)); if (match_result == true) { Debug("url_rewrite_regex", "Request URL host [%.*s] matched regex in mapping of rank %d "
