diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-04 23:22:15 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-04 23:22:15 +0000 |
commit | 0db00da0b5bbcb53ec7ac420a6b68533f579a51f (patch) | |
tree | 0acf157fb39c64ebd5f262222e2cbac91993ef2a /chrome | |
parent | a815973fc8d56c63f06f2955d53733696a6076fc (diff) | |
download | chromium_src-0db00da0b5bbcb53ec7ac420a6b68533f579a51f.zip chromium_src-0db00da0b5bbcb53ec7ac420a6b68533f579a51f.tar.gz chromium_src-0db00da0b5bbcb53ec7ac420a6b68533f579a51f.tar.bz2 |
Do not add the Content-Length header in the URLFetcher,
since that header will be added later in
HttpNetworkTransaction::BuildRequestHeaders.
This change prevents POST requests from having a duplicate
Content-Length header.
Review URL: http://codereview.chromium.org/12965
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/url_fetcher.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/url_fetcher.cc b/chrome/browser/url_fetcher.cc index e40d414..388a1f6 100644 --- a/chrome/browser/url_fetcher.cc +++ b/chrome/browser/url_fetcher.cc @@ -120,8 +120,7 @@ void URLFetcher::Core::StartURLRequest() { if (!extra_request_headers_.empty()) extra_request_headers_ += "\r\n"; StringAppendF(&extra_request_headers_, - "Content-Length: %d\r\nContent-Type: %s", - upload_content_.size(), upload_content_type_.c_str()); + "Content-Type: %s", upload_content_type_.c_str()); request_->AppendBytesToUpload(upload_content_.data(), static_cast<int>(upload_content_.size())); break; |