You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2014/07/11 18:32:31 UTC

git commit: TS-2934: Default remap rule will remap synthetic test

Repository: trafficserver
Updated Branches:
  refs/heads/master ed0cd00fa -> 470732ffc


TS-2934: Default remap rule will remap synthetic test


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

Branch: refs/heads/master
Commit: 470732ffcfd250e8094f211dcccea8b03b7a5b13
Parents: ed0cd00
Author: Bryan Call <bc...@apache.org>
Authored: Fri Jul 11 09:32:17 2014 -0700
Committer: Bryan Call <bc...@apache.org>
Committed: Fri Jul 11 09:32:17 2014 -0700

----------------------------------------------------------------------
 CHANGES              | 2 ++
 proxy/http/HttpSM.cc | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/470732ff/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index fd1c354..ceec407 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.1.0
 
+  *) [TS-2934] Default remap rule will remap synthetic test
+
   *) [TS-2904] Add Via header decoder option to traffic_line.
    Author: Meera Mosale Nataraja <me...@gmail.com>
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/470732ff/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 211fc22..77a30c1 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -3794,7 +3794,10 @@ HttpSM::do_remap_request(bool run_inline)
   DebugSM("http_seq", "[HttpSM::do_remap_request] Remapping request");
   DebugSM("url_rewrite", "Starting a possible remapping for request [%" PRId64 "]", sm_id);
 
-  bool ret = remapProcessor.setup_for_remap(&t_state);
+  bool ret = false;
+  if (t_state.cop_test_page == false) {
+    ret = remapProcessor.setup_for_remap(&t_state);
+  }
 
   // Preserve pristine url before remap
   // This needs to be done after the Host: header for reverse proxy is added to the url, but