From ff136b160ebc346adbf4fba82637b4a780627717 Mon Sep 17 00:00:00 2001 From: "battre@chromium.org" Date: Tue, 21 Jun 2011 16:30:43 +0000 Subject: 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 --- net/http/http_vary_data.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'net/http/http_vary_data.cc') 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. -- cgit v1.1