summaryrefslogtreecommitdiffstats
path: root/net/http/http_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_util.cc')
-rw-r--r--net/http/http_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_util.cc b/net/http/http_util.cc
index b3819c21..53693f4 100644
--- a/net/http/http_util.cc
+++ b/net/http/http_util.cc
@@ -353,8 +353,8 @@ const char* const kForbiddenHeaderFields[] = {
// static
bool HttpUtil::IsSafeHeader(const std::string& name) {
std::string lower_name(base::StringToLowerASCII(name));
- if (base::StartsWithASCII(lower_name, "proxy-", true) ||
- base::StartsWithASCII(lower_name, "sec-", true))
+ if (base::StartsWith(lower_name, "proxy-", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(lower_name, "sec-", base::CompareCase::SENSITIVE))
return false;
for (size_t i = 0; i < arraysize(kForbiddenHeaderFields); ++i) {
if (lower_name == kForbiddenHeaderFields[i])