trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject [3/5] git commit: [TS-2631] header_rewrite to support new destinations in global plugin case
Date Wed, 12 Mar 2014 22:08:11 GMT
[TS-2631] header_rewrite to support new destinations in global plugin case


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

Branch: refs/heads/master
Commit: cca8867973ae68ee51332eb9c19aebea0f4779d2
Parents: fa62240
Author: Brian Geffon <briang@apache.org>
Authored: Wed Mar 12 14:19:37 2014 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Wed Mar 12 14:19:37 2014 -0700

----------------------------------------------------------------------
 plugins/header_rewrite/operators.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cca88679/plugins/header_rewrite/operators.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/operators.cc b/plugins/header_rewrite/operators.cc
index 086a316..c1621ef 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -167,9 +167,11 @@ OperatorSetDestination::exec(const Resources& res) const
     TSMBuffer bufp;
     TSMLoc url_m_loc;
     if (res._rri) {
+      TSDebug(PLUGIN_NAME, "OperatorSetDestination::exec() using remap plugin TSMBuffer.");
       bufp = res._rri->requestBufp;
       url_m_loc = res._rri->requestUrl;
     } else {
+      TSDebug(PLUGIN_NAME, "OperatorSetDestination::exec() using global plugin TSMBuffer.");
       bufp = res.bufp;
       if (TSHttpHdrUrlGet(res.bufp, res.hdr_loc, &url_m_loc) != TS_SUCCESS) {
         TSDebug(PLUGIN_NAME, "TSHttpHdrUrlGet was unable to return the url m_loc");


Mime
View raw message