summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 22:27:59 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 22:27:59 +0000
commit7ab0ffdfd5aa79fba28c0c97791494ef5801c173 (patch)
tree5a7aac2bda26078099c99b56403d030e21e64ca2 /cloud_print
parent02f3e74ca8567383e763c1108533af40fda92aab (diff)
downloadchromium_src-7ab0ffdfd5aa79fba28c0c97791494ef5801c173.zip
chromium_src-7ab0ffdfd5aa79fba28c0c97791494ef5801c173.tar.gz
chromium_src-7ab0ffdfd5aa79fba28c0c97791494ef5801c173.tar.bz2
Extend net::HttpServer to be able to parse request body.
Also, make header field names lower case, for case insensitive comparisons. Also, accept headers with empty values, so that we can test with URLFetcher, which has empty user agent string by default. BUG=none Review URL: https://chromiumcodereview.appspot.com/19691002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/privet_http_server.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud_print/gcp20/prototype/privet_http_server.cc b/cloud_print/gcp20/prototype/privet_http_server.cc
index 6c08029..58e35a8 100644
--- a/cloud_print/gcp20/prototype/privet_http_server.cc
+++ b/cloud_print/gcp20/prototype/privet_http_server.cc
@@ -106,7 +106,7 @@ void PrivetHttpServer::OnHttpRequest(int connection_id,
if (!CommandLine::ForCurrentProcess()->HasSwitch("disable-x-token")) {
net::HttpServerRequestInfo::HeadersMap::const_iterator iter =
- info.headers.find("X-Privet-Token");
+ info.headers.find("x-privet-token");
if (iter == info.headers.end()) {
server_->Send(connection_id, net::HTTP_BAD_REQUEST,
"Missing X-Privet-Token header.\n"