diff options
author | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-21 17:31:22 +0000 |
---|---|---|
committer | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-21 17:31:22 +0000 |
commit | 819b27eedfa826fa7d3d378eb14f258dd1c4048e (patch) | |
tree | a8c84627b75362e8f13859c55d25e111d53c6b59 /net/http/http_vary_data.cc | |
parent | ad8fbf1b4f7e4bc42e75d8d86eaa18b3bbbc5c1b (diff) | |
download | chromium_src-819b27eedfa826fa7d3d378eb14f258dd1c4048e.zip chromium_src-819b27eedfa826fa7d3d378eb14f258dd1c4048e.tar.gz chromium_src-819b27eedfa826fa7d3d378eb14f258dd1c4048e.tar.bz2 |
Revert 89837 - Move Referer and Host HTTP headers to extra_headers field
BUG=no
TEST=no
Review URL: http://codereview.chromium.org/6995064
TBR=battre@chromium.org
Review URL: http://codereview.chromium.org/7222008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_vary_data.cc')
-rw-r--r-- | net/http/http_vary_data.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_vary_data.cc b/net/http/http_vary_data.cc index 09aab9d..f5c7514 100644 --- a/net/http/http_vary_data.cc +++ b/net/http/http_vary_data.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -97,6 +97,10 @@ bool HttpVaryData::MatchesRequest( std::string HttpVaryData::GetRequestValue( const HttpRequestInfo& request_info, const std::string& request_header) { + // Some special cases: + if (!base::strcasecmp(request_header.c_str(), HttpRequestHeaders::kReferer)) + return request_info.referrer.spec(); + // Unfortunately, we do not have access to all of the request headers at this // point. Most notably, we do not have access to an Authorization header if // one will be added to the request. |