diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 00:42:18 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 00:42:18 +0000 |
commit | 5819e220c4bb4bc2f48df4f071deb068bbbbca60 (patch) | |
tree | 03ad6f9eb10e46c2da108e2c6e64aad8d54f6309 /net | |
parent | 6cade219e58c8806bdbd02316d78f49c8fa97996 (diff) | |
download | chromium_src-5819e220c4bb4bc2f48df4f071deb068bbbbca60.zip chromium_src-5819e220c4bb4bc2f48df4f071deb068bbbbca60.tar.gz chromium_src-5819e220c4bb4bc2f48df4f071deb068bbbbca60.tar.bz2 |
Remove unused x-SDCH header from get requests
This was originally in place to allow the server folks to filter out (disable)
a specific client. Given that it is no big deal if chrome support for SDCH
is disabled in GWS, this is really not needed (and it accounts for a large
number of bytes in ALL get requests.
If we have a problem with SDCH support in chrome, we'd roll a new version
IMO, if server needs to disable this feature for a specific version, they
should filter on the actual user agent string, and not require a redundant
copy of it here.
r=openvcdiff,huanr,kmixter
Review URL: http://codereview.chromium.org/13071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_http_job.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index eac02e1..ca28e7c 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -506,13 +506,6 @@ void URLRequestHttpJob::AddExtraHeaders() { + avail_dictionaries + "\r\n"; request_info_.load_flags |= net::LOAD_SDCH_DICTIONARY_ADVERTISED; } - - scoped_ptr<FileVersionInfo> file_version_info( - FileVersionInfo::CreateFileVersionInfoForCurrentModule()); - request_info_.extra_headers += "X-SDCH: Chrome "; - request_info_.extra_headers += - WideToASCII(file_version_info->product_version()); - request_info_.extra_headers += "\r\n"; } URLRequestContext* context = request_->context(); |