Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: net/quic/core/spdy_utils.cc

Issue 2391103003: Landing Recent QUIC changes until 3:24 PM, Oct 01, 2016 UTC-4 (Closed)
Patch Set: Add new error code to quic_error_mapping.cc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_utils.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/spdy_utils.cc
diff --git a/net/quic/core/spdy_utils.cc b/net/quic/core/spdy_utils.cc
index aab7f6f6895e6837b1a803309f1b696c83e77a67..0f3e69cadeec79a38f939b2ce7fa34bb8b3a551d 100644
--- a/net/quic/core/spdy_utils.cc
+++ b/net/quic/core/spdy_utils.cc
@@ -113,7 +113,7 @@ bool SpdyUtils::ParseTrailers(const char* data,
for (const auto& trailer : *trailers) {
base::StringPiece key = trailer.first;
base::StringPiece value = trailer.second;
- if (key.starts_with(":")) {
+ if (base::StartsWith(key, ":", base::CompareCase::INSENSITIVE_ASCII)) {
DVLOG(1) << "Trailers must not contain pseudo-header: '" << key << "','"
<< value << "'.";
return false;
« no previous file with comments | « net/quic/core/quic_utils.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698