Updated Branches: refs/heads/3.0.x fbcb4b8bd -> dcb7c6ba5
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/dcb7c6ba Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/dcb7c6ba Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/dcb7c6ba Branch: refs/heads/3.0.x Commit: dcb7c6ba5d8ce486d7658858a28c6fcf815867ff Parents: fbcb4b8 Author: Bryan Call <[email protected]> Authored: Wed Mar 14 13:20:26 2012 -0700 Committer: Bryan Call <[email protected]> Committed: Wed Mar 14 13:20:26 2012 -0700 ---------------------------------------------------------------------- proxy/http/remap/RemapPlugins.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/dcb7c6ba/proxy/http/remap/RemapPlugins.cc ---------------------------------------------------------------------- diff --git a/proxy/http/remap/RemapPlugins.cc b/proxy/http/remap/RemapPlugins.cc index 99e2bd9..95ca9de 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.
