trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject git commit: Fixing small bug w/ url caching
Date Tue, 09 Sep 2014 20:18:19 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 8b03facb1 -> 627a7011e


Fixing small bug w/ url caching


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

Branch: refs/heads/master
Commit: 627a7011e7b20f8b5526e2d641df28edf8a4098c
Parents: 8b03fac
Author: Brian Geffon <briang@apache.org>
Authored: Tue Sep 9 13:18:09 2014 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Tue Sep 9 13:18:09 2014 -0700

----------------------------------------------------------------------
 lib/atscppapi/src/utils_internal.cc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/627a7011/lib/atscppapi/src/utils_internal.cc
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/utils_internal.cc b/lib/atscppapi/src/utils_internal.cc
index 2930c97..33baa53 100644
--- a/lib/atscppapi/src/utils_internal.cc
+++ b/lib/atscppapi/src/utils_internal.cc
@@ -53,6 +53,10 @@ int handleTransactionEvents(TSCont cont, TSEvent event, void *edata) {
   switch (event) {
   case TS_EVENT_HTTP_POST_REMAP:
     transaction.getClientRequest().getUrl().reset();
+    // This is here to force a refresh of the cached client request url
+    TSMBuffer hdr_buf;
+    TSMLoc hdr_loc;
+    TSHttpTxnClientReqGet(static_cast<TSHttpTxn>(transaction.getAtsHandle()), &hdr_buf,
&hdr_loc);
     break;
   case TS_EVENT_HTTP_SEND_REQUEST_HDR:
     utils::internal::initTransactionServerRequest(transaction);
@@ -105,11 +109,6 @@ void inline invokePluginForEvent(Plugin *plugin, TSHttpTxn ats_txn_handle,
TSEve
     break;
   case TS_EVENT_HTTP_POST_REMAP:
     plugin->handleReadRequestHeadersPostRemap(transaction);
-
-    // This is here to force a refresh of the cached client request url
-    TSMBuffer hdr_buf;
-    TSMLoc hdr_loc;
-    TSHttpTxnClientReqGet(static_cast<TSHttpTxn>(transaction.getAtsHandle()), &hdr_buf,
&hdr_loc);
     break;
   case TS_EVENT_HTTP_SEND_REQUEST_HDR:
     plugin->handleSendRequestHeaders(transaction);


Mime
View raw message