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-3450]: rename header_rewrite condition INTERNAL-TRANSACTION as INTERNAL-TXN in-line with the changes in [TS-3449]
Date Mon, 06 Apr 2015 19:51:31 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master c3009e77e -> e84df9b08


[TS-3450]: rename header_rewrite condition INTERNAL-TRANSACTION as INTERNAL-TXN
in-line with the changes in [TS-3449]


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

Branch: refs/heads/master
Commit: 831726c6525173b39a911e2bc3bff08dc7d2c265
Parents: c3009e7
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Mon Apr 6 19:50:01 2015 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Mon Apr 6 19:50:01 2015 +0000

----------------------------------------------------------------------
 plugins/header_rewrite/conditions.cc | 2 +-
 plugins/header_rewrite/conditions.h  | 2 +-
 plugins/header_rewrite/factory.cc    | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/831726c6/plugins/header_rewrite/conditions.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/conditions.cc b/plugins/header_rewrite/conditions.cc
index f5f1bc0..cffd8f6 100644
--- a/plugins/header_rewrite/conditions.cc
+++ b/plugins/header_rewrite/conditions.cc
@@ -499,7 +499,7 @@ ConditionCookie::eval(const Resources &res)
 }
 
 bool
-ConditionInternalTransaction::eval(const Resources &res)
+ConditionInternalTxn::eval(const Resources &res)
 {
   return TSHttpTxnIsInternal(res.txnp) == TS_SUCCESS;
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/831726c6/plugins/header_rewrite/conditions.h
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/conditions.h b/plugins/header_rewrite/conditions.h
index 8e7744b..7a78775 100644
--- a/plugins/header_rewrite/conditions.h
+++ b/plugins/header_rewrite/conditions.h
@@ -333,7 +333,7 @@ private:
   TSMutex _mutex;
 };
 
-class ConditionInternalTransaction : public Condition
+class ConditionInternalTxn : public Condition
 {
 public:
   void

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/831726c6/plugins/header_rewrite/factory.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/factory.cc b/plugins/header_rewrite/factory.cc
index 2759e7e..0fb3c70 100644
--- a/plugins/header_rewrite/factory.cc
+++ b/plugins/header_rewrite/factory.cc
@@ -111,6 +111,8 @@ condition_factory(const std::string &cond)
     c = new ConditionDBM();
   } else if (c_name == "INTERNAL-TRANSACTION") {
     c = new ConditionInternalTransaction();
+  } else if (c_name == "INTERNAL-TXN") {
+    c = new ConditionInternalTxn();
   } else if (c_name == "CLIENT-IP") {
     c = new ConditionClientIp();
   } else if (c_name == "INCOMING-PORT") {


Mime
View raw message