trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: TS-2811: Error logged in regex_remap when lowercase_substitutions option is used
Date Thu, 15 May 2014 20:32:07 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master a39c3e6c8 -> 500450bd7


TS-2811: Error logged in regex_remap when lowercase_substitutions option is used


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/500450bd
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/500450bd
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/500450bd

Branch: refs/heads/master
Commit: 500450bd752c7ea16d58f1c7cc9918c98c8a053d
Parents: a39c3e6
Author: Bryan Call <bcall@apache.org>
Authored: Thu May 15 13:31:38 2014 -0700
Committer: Bryan Call <bcall@apache.org>
Committed: Thu May 15 13:31:38 2014 -0700

----------------------------------------------------------------------
 plugins/regex_remap/regex_remap.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/500450bd/plugins/regex_remap/regex_remap.cc
----------------------------------------------------------------------
diff --git a/plugins/regex_remap/regex_remap.cc b/plugins/regex_remap/regex_remap.cc
index efd3d24..d489dc2 100644
--- a/plugins/regex_remap/regex_remap.cc
+++ b/plugins/regex_remap/regex_remap.cc
@@ -285,9 +285,7 @@ RemapRegex::initialize(const std::string& reg, const std::string&
sub, const std
       // All other options have a required value
       TSError("Malformed options: %s", opt.c_str());
       break;
-    }
-
-    if (opt.compare(start, 6, "status") == 0) {
+    } else if (opt.compare(start, 6, "status") == 0) {
       _status = static_cast<TSHttpStatus>(strtol(opt_val.c_str(), NULL, 10));
     } else if (opt.compare(start, 14, "active_timeout") == 0) {
       _active_timeout = strtol(opt_val.c_str(), NULL, 10);


Mime
View raw message