trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject git commit: requestPath needs to be set after modifying the _request_url or it maybe invalid. Moved setting of this variable
Date Sat, 10 Mar 2012 04:49:01 GMT
Updated Branches:
  refs/heads/master 97284401a -> 58fc4c472


requestPath needs to be set after modifying the _request_url or it maybe
invalid.  Moved setting of this variable


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

Branch: refs/heads/master
Commit: 58fc4c472838158080660df79be20d8c13503f30
Parents: 9728440
Author: Bryan Call <bryan_call@yahoo.com>
Authored: Fri Mar 9 20:45:49 2012 -0800
Committer: Bryan Call <bryan_call@yahoo.com>
Committed: Fri Mar 9 20:45:49 2012 -0800

----------------------------------------------------------------------
 proxy/http/remap/RemapPlugins.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/58fc4c47/proxy/http/remap/RemapPlugins.cc
----------------------------------------------------------------------
diff --git a/proxy/http/remap/RemapPlugins.cc b/proxy/http/remap/RemapPlugins.cc
index b73c2a7..0a701a0 100644
--- a/proxy/http/remap/RemapPlugins.cc
+++ b/proxy/http/remap/RemapPlugins.cc
@@ -114,7 +114,6 @@ RemapPlugins::run_single_remap()
   bool debug_on = false;
   int retcode = 0;              // 0 - no redirect, !=0 - redirected
 
-  requestPath = _request_url->path_get(&requestPathLen);
   debug_on = is_debug_tag_set("url_rewrite");
 
   if (_request_header)
@@ -169,6 +168,7 @@ RemapPlugins::run_single_remap()
     if (to_scheme != map_from->scheme_get(&from_scheme_len))
       _request_url->scheme_set(to_scheme, to_scheme_len);
 
+    requestPath = _request_url->path_get(&requestPathLen);
     // Extra byte is potentially needed for prefix path '/'.
     // Added an extra 3 so that TS wouldn't crash in the field.
     // Allocate a large buffer to avoid problems.


Mime
View raw message