diff options
author | tzik <tzik@chromium.org> | 2015-12-21 00:56:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-21 08:57:13 +0000 |
commit | e4e4d491c18bbf4d5f3b37039b4896d84d3eca0e (patch) | |
tree | 7e3d7a69dabcd8e485623e87fa84444332552be4 /extensions/browser/guest_view | |
parent | c52e003a0fb6bf8ae9d79afb52ad20d84f439b99 (diff) | |
download | chromium_src-e4e4d491c18bbf4d5f3b37039b4896d84d3eca0e.zip chromium_src-e4e4d491c18bbf4d5f3b37039b4896d84d3eca0e.tar.gz chromium_src-e4e4d491c18bbf4d5f3b37039b4896d84d3eca0e.tar.bz2 |
Handle HTTP headers case-insensitively on the test server
The HTTP spec says the name of HTTP headers should be case-insensitive,
while our embedded test server doesn't. That blocks a on-going Blink
side change for the case normalization of HTTP header names.
BUG=556969
Review URL: https://codereview.chromium.org/1474603002
Cr-Commit-Position: refs/heads/master@{#366348}
Diffstat (limited to 'extensions/browser/guest_view')
-rw-r--r-- | extensions/browser/guest_view/web_view/web_view_apitest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.cc b/extensions/browser/guest_view/web_view/web_view_apitest.cc index 312545a..ecdb15a 100644 --- a/extensions/browser/guest_view/web_view/web_view_apitest.cc +++ b/extensions/browser/guest_view/web_view/web_view_apitest.cc @@ -61,8 +61,7 @@ static scoped_ptr<net::test_server::HttpResponse> UserAgentResponseHandler( base::CompareCase::SENSITIVE)) return scoped_ptr<net::test_server::HttpResponse>(); - std::map<std::string, std::string>::const_iterator it = - request.headers.find("User-Agent"); + auto it = request.headers.find("User-Agent"); EXPECT_TRUE(it != request.headers.end()); if (!base::StartsWith("foobar", it->second, base::CompareCase::SENSITIVE)) return scoped_ptr<net::test_server::HttpResponse>(); |