trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject git commit: Fix broken indentation... My bad.
Date Tue, 11 Mar 2014 21:39:16 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master e9a6033a2 -> c12b56d38


Fix broken indentation... My bad.


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

Branch: refs/heads/master
Commit: c12b56d382400dfcb785b5a46fbe17da0ec137af
Parents: e9a6033
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Tue Mar 11 15:39:01 2014 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Tue Mar 11 15:39:01 2014 -0600

----------------------------------------------------------------------
 proxy/InkAPI.cc | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c12b56d3/proxy/InkAPI.cc
----------------------------------------------------------------------
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 0bb7f80..9719990 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -8362,26 +8362,26 @@ TSHttpTxnBackgroundFillStarted(TSHttpTxn txnp)
 
 int
 TSHttpTxnIsCacheable(TSHttpTxn txnp, TSMBuffer request, TSMBuffer response)
- {
-   sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
-   HttpSM *sm = (HttpSM *) txnp;
-   HTTPHdr *req, *resp;
-
-   // We allow for either request or response to be empty (or both), in
-   // which case we default to the transactions request or response.
-   if (request) {
-     sdk_sanity_check_mbuffer(request);
-     req = reinterpret_cast<HTTPHdr*>(request);
-   } else {
-     req = &(sm->t_state.hdr_info.client_request);
-   }
-   if (response) {
-     sdk_sanity_check_mbuffer(response);
-     resp = reinterpret_cast<HTTPHdr*>(response);
-   } else {
-     resp = &(sm->t_state.hdr_info.server_response);
-   }
+{
+  sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
+  HttpSM *sm = (HttpSM *) txnp;
+  HTTPHdr *req, *resp;
 
-   // Make sure these are valid response / requests, then verify if it's cacheable.
-   return (req->valid() && resp->valid() && HttpTransact::is_response_cacheable(&(sm->t_state),
req, resp)) ? 1: 0;
- }
+  // We allow for either request or response to be empty (or both), in
+  // which case we default to the transactions request or response.
+  if (request) {
+    sdk_sanity_check_mbuffer(request);
+    req = reinterpret_cast<HTTPHdr*>(request);
+  } else {
+    req = &(sm->t_state.hdr_info.client_request);
+  }
+  if (response) {
+    sdk_sanity_check_mbuffer(response);
+    resp = reinterpret_cast<HTTPHdr*>(response);
+  } else {
+    resp = &(sm->t_state.hdr_info.server_response);
+  }
+
+  // Make sure these are valid response / requests, then verify if it's cacheable.
+  return (req->valid() && resp->valid() && HttpTransact::is_response_cacheable(&(sm->t_state),
req, resp)) ? 1: 0;
+}


Mime
View raw message