trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject [2/3] trafficserver git commit: [TS-2812]: cleanup trailing spaces etc
Date Tue, 11 Nov 2014 19:06:41 GMT
[TS-2812]: cleanup trailing spaces etc


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

Branch: refs/heads/master
Commit: d6380f72ef4416a2c69070944a4875835d96a76e
Parents: cb63dd9
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Tue Nov 11 19:05:17 2014 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Tue Nov 11 19:05:17 2014 +0000

----------------------------------------------------------------------
 plugins/experimental/header_normalize/header_normalize.cc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d6380f72/plugins/experimental/header_normalize/header_normalize.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/header_normalize/header_normalize.cc b/plugins/experimental/header_normalize/header_normalize.cc
index 91517db..3afe633 100644
--- a/plugins/experimental/header_normalize/header_normalize.cc
+++ b/plugins/experimental/header_normalize/header_normalize.cc
@@ -3,7 +3,7 @@
 //
 // ATS plugin to convert headers into camel-case. It may be useful to solve
 // interworking issues with legacy origins not supporting lower case headers
-// required by protocols such as spdy/http2 etc. 
+// required by protocols such as spdy/http2 etc.
 //
 // To use this plugin, configure a remap.config rule like
 //
@@ -182,7 +182,7 @@ read_request_hook(TSCont /* contp */, TSEvent /* event */, void *edata)
       int old_hdr_len;
       const char* old_hdr_name = TSMimeHdrFieldNameGet(hdr_bufp, req_hdrs, hdr, &old_hdr_len);
 
-      // TSMimeHdrFieldNameGet returns the MIME_FIELD_NAME 
+      // TSMimeHdrFieldNameGet returns the MIME_FIELD_NAME
       // for all MIME hdrs, which is always in Camel Case
       if (islower(old_hdr_name[0])) {
          TSDebug(PLUGIN_NAME, "*** non MIME Hdr %s, leaving it for now", old_hdr_name);
@@ -198,8 +198,7 @@ read_request_hook(TSCont /* contp */, TSEvent /* event */, void *edata)
       // hdr returned by TSMimeHdrFieldNameGet is already
       // in camel case, just destroy the lowercase spdy header
       // and replace it with TSMimeHdrFieldNameGet
-      char* new_hdr_name = (char*)old_hdr_name; 
-    
+      char* new_hdr_name = (char*)old_hdr_name;
       if (new_hdr_name) {
         TSMLoc new_hdr_loc;
         TSReturnCode rval = TSMimeHdrFieldCreateNamed(hdr_bufp, req_hdrs, new_hdr_name, old_hdr_len,
&new_hdr_loc);


Mime
View raw message