You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zy...@apache.org on 2012/11/06 08:08:06 UTC

git commit: plugin esi: string add change to append

Updated Branches:
  refs/heads/master 8c0eef314 -> 53ad4f337


plugin esi: string add change to append


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

Branch: refs/heads/master
Commit: 53ad4f3371c029d27e1eedce386a08254a58d3d0
Parents: 8c0eef3
Author: Yu Qing <zh...@taobao.com>
Authored: Wed Oct 31 02:41:06 2012 +0800
Committer: Zhao Yongming <mi...@gmail.com>
Committed: Tue Nov 6 15:06:47 2012 +0800

----------------------------------------------------------------------
 plugins/experimental/esi/plugin.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/53ad4f33/plugins/experimental/esi/plugin.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/esi/plugin.cc b/plugins/experimental/esi/plugin.cc
index 6133a14..a2b74f5 100644
--- a/plugins/experimental/esi/plugin.cc
+++ b/plugins/experimental/esi/plugin.cc
@@ -383,7 +383,7 @@ ContData::fillPostHeader(TSMBuffer bufp, TSMLoc hdr_loc) {
         } // end value iteration
 
         if (static_cast<int>(header.size()) > (name_len + 2 /* for ': ' */ )) {
-          header += "\r\n";
+          header.append("\r\n");
           post_headers.push_back(header);
         }
       } // end if processable header
@@ -530,7 +530,7 @@ cacheNodeList(ContData *cont_data) {
   }
   string post_request("");
   post_request.append(TS_HTTP_METHOD_POST);
-  post_request += ' ';
+  post_request.append(" ");
   post_request.append(cont_data->request_url);
   post_request.append(" HTTP/1.0\r\n");
   post_request.append(SERVER_INTERCEPT_HEADER);
@@ -1375,7 +1375,7 @@ lFail:
     delete cont_data;
   }
   return false;
-} 
+}
 
 pthread_key_t threadKey;
 static int
@@ -1398,7 +1398,7 @@ globalHookHandler(TSCont contp, TSEvent event, void *edata) {
       TSDebug(DEBUG_TAG, "[%s] Not setting up intercept", __FUNCTION__);
     }
     break;
-    
+
   case TS_EVENT_HTTP_READ_RESPONSE_HDR:
   case TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE:
     if (!intercept_req) {