trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [6/6] trafficserver git commit: TS-3495 Gah, undo a previous broken cast, wrong place
Date Mon, 06 Apr 2015 16:45:16 GMT
TS-3495 Gah, undo a previous broken cast, wrong place

(cherry picked from commit df8302af8f5cf3609cfc41276df21a2a38ad8a85)


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

Branch: refs/heads/5.3.x
Commit: 7f0c9b7d74e7bad85f3ff9134a80cb7f1748b6a3
Parents: bb90dd4
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Sun Apr 5 10:55:52 2015 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Mon Apr 6 10:37:24 2015 -0600

----------------------------------------------------------------------
 proxy/http2/HTTP2.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7f0c9b7d/proxy/http2/HTTP2.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index e55c4ab..f971938 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -708,7 +708,7 @@ http2_parse_header_fragment(HTTPHdr *hdr, IOVec iov, Http2DynamicTable
&dynamic_
 
     // when The TE header field is received, it MUST NOT contain any
     // value other than "trailers".
-    if (static_cast<unsigned>(name_len) == MIME_LEN_TE && strncmp(name, MIME_FIELD_TE,
name_len) == 0) {
+    if (name_len == MIME_LEN_TE && strncmp(name, MIME_FIELD_TE, name_len) == 0) {
       int value_len = 0;
       const char *value = field->value_get(&value_len);
       char trailers[] = "trailers";


Mime
View raw message