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

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

Issue 2399473003: StringPiece will be replaced with std::string_view. std::string_view doesn't have starts_with. (Closed)
Patch Set: 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 | « no previous file | net/tools/quic/chlo_extractor.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 | « no previous file | net/tools/quic/chlo_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698