diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 04:31:17 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 04:31:17 +0000 |
commit | fcfaa4e7e70d366db6accae092855f59c44be4a9 (patch) | |
tree | 48633317a9572b1131bdce721d27f050c2f13a1e /net/url_request | |
parent | 564eee25d576db623bd6b648b28b9b649e2a1b8b (diff) | |
download | chromium_src-fcfaa4e7e70d366db6accae092855f59c44be4a9.zip chromium_src-fcfaa4e7e70d366db6accae092855f59c44be4a9.tar.gz chromium_src-fcfaa4e7e70d366db6accae092855f59c44be4a9.tar.bz2 |
Remove the pre-launch bzip2 hack.
Review URL: http://codereview.chromium.org/1691
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_http_job.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index bf2091b..303d245 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -474,31 +474,8 @@ void URLRequestHttpJob::AddExtraHeaders() { context->accept_charset() + "\r\n"; } -#ifdef CHROME_LAST_MINUTE // Tell the server what compression formats we support. request_info_.extra_headers += "Accept-Encoding: gzip,deflate,bzip2\r\n"; -#else - // Tell the server that we support gzip/deflate encoding. - request_info_.extra_headers += "Accept-Encoding: gzip,deflate"; - - // const string point to google domain - static const char kGoogleDomain[] = "google.com"; - static const unsigned int kGoogleDomainLen = arraysize(kGoogleDomain) - 1; - static const char kLocalHostName[] = "localhost"; - - // At now, only support bzip2 feature for those requests which are - // sent to google domain or localhost. - // TODO(jnd) : we will remove the "google.com" domain check before launch. - // See bug : 861940 - const std::string &host = request_->url().host(); - - if (host == kLocalHostName || - request_->url().DomainIs(kGoogleDomain, kGoogleDomainLen)) { - request_info_.extra_headers += ",bzip2\r\n"; - } else { - request_info_.extra_headers += "\r\n"; - } -#endif } void URLRequestHttpJob::FetchResponseCookies() { |