summaryrefslogtreecommitdiffstats
path: root/net/http/http_vary_data.cc
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 16:30:43 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 16:30:43 +0000
commitff136b160ebc346adbf4fba82637b4a780627717 (patch)
tree2089d16a15990d8f1d56fd2c649b4f1949408334 /net/http/http_vary_data.cc
parentff38513de6a912dba7f3b539e455448be226c982 (diff)
downloadchromium_src-ff136b160ebc346adbf4fba82637b4a780627717.zip
chromium_src-ff136b160ebc346adbf4fba82637b4a780627717.tar.gz
chromium_src-ff136b160ebc346adbf4fba82637b4a780627717.tar.bz2
Move Referer and Host HTTP headers to extra_headers field
BUG=no TEST=no Review URL: http://codereview.chromium.org/6995064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_vary_data.cc')
-rw-r--r--net/http/http_vary_data.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/http/http_vary_data.cc b/net/http/http_vary_data.cc
index f5c7514..09aab9d 100644
--- a/net/http/http_vary_data.cc
+++ b/net/http/http_vary_data.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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,10 +97,6 @@ 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.