From fcfaa4e7e70d366db6accae092855f59c44be4a9 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Wed, 10 Sep 2008 04:31:17 +0000 Subject: 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 --- net/url_request/url_request_http_job.cc | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'net') 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() { -- cgit v1.1