Index: net/http/http_server_properties_impl.cc |
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc |
index d1c259ed880e2b1d8eb1fa04fd3591e57d2fe9a9..15871b530866b780a6d9914b9272aa86fb83e98d 100644 |
--- a/net/http/http_server_properties_impl.cc |
+++ b/net/http/http_server_properties_impl.cc |
@@ -117,8 +117,7 @@ |
for (AlternativeServiceMap::const_iterator it = |
alternative_service_map_.begin(); |
it != alternative_service_map_.end(); ++it) { |
- if (base::EndsWith(it->first.host(), canonical_suffixes_[i], |
- base::CompareCase::INSENSITIVE_ASCII)) { |
+ if (base::EndsWith(it->first.host(), canonical_suffixes_[i], false)) { |
canonical_host_to_origin_map_[canonical_host] = it->first; |
break; |
} |
@@ -261,8 +260,7 @@ |
// suffix. |
for (size_t i = 0; i < canonical_suffixes_.size(); ++i) { |
std::string canonical_suffix = canonical_suffixes_[i]; |
- if (base::EndsWith(host, canonical_suffixes_[i], |
- base::CompareCase::INSENSITIVE_ASCII)) { |
+ if (base::EndsWith(host, canonical_suffixes_[i], false)) { |
return canonical_suffix; |
} |
} |
@@ -370,8 +368,7 @@ |
// canonical host. |
for (size_t i = 0; i < canonical_suffixes_.size(); ++i) { |
std::string canonical_suffix = canonical_suffixes_[i]; |
- if (base::EndsWith(origin.host(), canonical_suffixes_[i], |
- base::CompareCase::INSENSITIVE_ASCII)) { |
+ if (base::EndsWith(origin.host(), canonical_suffixes_[i], false)) { |
HostPortPair canonical_host(canonical_suffix, origin.port()); |
canonical_host_to_origin_map_[canonical_host] = origin; |
break; |
@@ -614,8 +611,7 @@ |
HttpServerPropertiesImpl::GetCanonicalHost(HostPortPair server) const { |
for (size_t i = 0; i < canonical_suffixes_.size(); ++i) { |
std::string canonical_suffix = canonical_suffixes_[i]; |
- if (base::EndsWith(server.host(), canonical_suffixes_[i], |
- base::CompareCase::INSENSITIVE_ASCII)) { |
+ if (base::EndsWith(server.host(), canonical_suffixes_[i], false)) { |
HostPortPair canonical_host(canonical_suffix, server.port()); |
return canonical_host_to_origin_map_.find(canonical_host); |
} |