trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-3495 Gah, undo a previous broken cast, wrong place
Date Sun, 05 Apr 2015 16:56:13 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 1e6df5691 -> df8302af8


TS-3495 Gah, undo a previous broken cast, wrong place


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

Branch: refs/heads/master
Commit: df8302af8f5cf3609cfc41276df21a2a38ad8a85
Parents: 1e6df56
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Sun Apr 5 10:55:52 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Sun Apr 5 10:55:52 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/df8302af/proxy/http2/HTTP2.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index 3a7d204..530f0e0 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -707,7 +707,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