trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject [1/2] trafficserver git commit: [TS-3523]: Proxy urls with no matching remap rules, when remap_required is disabled, regardless of reverse_proxy_enabled setting
Date Tue, 21 Apr 2015 18:25:21 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 45d3ce1ba -> 2dac573db


[TS-3523]: Proxy urls with no matching remap rules, when remap_required
           is disabled, regardless of reverse_proxy_enabled setting


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

Branch: refs/heads/master
Commit: 705e0e6b59cd73457f6c7277bdf4002ae97cd135
Parents: 45d3ce1
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Tue Apr 21 18:23:12 2015 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Tue Apr 21 18:23:12 2015 +0000

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/705e0e6b/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 66b32b6..0c26363 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -819,6 +819,10 @@ HttpTransact::EndRemapRequest(State *s)
       TRANSACT_RETURN(SM_ACTION_INTERNAL_CACHE_NOOP, NULL);
     }
 
+    if (!s->http_config_param->url_remap_required && !incoming_request->is_target_in_url())
{
+      s->hdr_info.client_request.set_url_target_from_host_field();
+    }
+
     /////////////////////////////////////////////////////////
     // check for: (1) reverse proxy is on, and no URL host //
     /////////////////////////////////////////////////////////


Mime
View raw message