| 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;
|
| }
|
|
|