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 2df12aa7b50d7b63d392f4bf2514a911ff8c954c..3f85935235c0035b295d6274ce0aeedd74ae8fe1 100644 |
--- a/mojo/services/network/http_connection_impl.cc |
+++ b/mojo/services/network/http_connection_impl.cc |
@@ -375,11 +375,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, net::HttpRequestHeaders::kContentLength)) { |
continue; |
- } else if (base::strcasecmp(header.name.data(), |
- net::HttpRequestHeaders::kContentType) == 0) { |
+ } else if (base::EqualsCaseInsensitiveASCII( |
+ header.name, net::HttpRequestHeaders::kContentType)) { |
content_type = header.value; |
continue; |
} |