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

Unified Diff: mojo/services/network/http_connection_impl.cc

Issue 2058093002: Roll base to 3ed5621c3408ce7109597b81faa0c27f1085a2cb. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 6 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 | « DEPS ('k') | net/dns/mdns_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/http_connection_impl.cc
diff --git a/mojo/services/network/http_connection_impl.cc b/mojo/services/network/http_connection_impl.cc
index f9c3583583cae90d64b76987309ef56f73c95cc0..189a3e1fbbfe78d6d88ce7b6dc0a356cb0cbc435 100644
--- a/mojo/services/network/http_connection_impl.cc
+++ b/mojo/services/network/http_connection_impl.cc
@@ -364,11 +364,11 @@ void HttpConnectionImpl::OnFinishedReadingResponseBody(
//
// TODO(yzshen): Consider adding to net::HttpServerResponseInfo a simple
// setter for body which doesn't fiddle with headers.
- if (base::strcasecmp(header.name.data(),
- net::HttpRequestHeaders::kContentLength) == 0) {
+ if (base::EqualsCaseInsensitiveASCII(
+ header.name.data(), net::HttpRequestHeaders::kContentLength))
continue;
- } else if (base::strcasecmp(header.name.data(),
- net::HttpRequestHeaders::kContentType) == 0) {
+ if (base::EqualsCaseInsensitiveASCII(
+ header.name.data(), net::HttpRequestHeaders::kContentType)) {
content_type = header.value;
continue;
}
« no previous file with comments | « DEPS ('k') | net/dns/mdns_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698