diff options
author | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 17:23:35 +0000 |
---|---|---|
committer | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-20 17:23:35 +0000 |
commit | eccc71573f19c2ece9d0771b3879d106ad9e22e7 (patch) | |
tree | c98122323ca91376fc306c6dbdf1b37adccc400d /net/http | |
parent | 6e7930a61a551ca667bc6c20d51d9cda2d0ab0f7 (diff) | |
download | chromium_src-eccc71573f19c2ece9d0771b3879d106ad9e22e7.zip chromium_src-eccc71573f19c2ece9d0771b3879d106ad9e22e7.tar.gz chromium_src-eccc71573f19c2ece9d0771b3879d106ad9e22e7.tar.bz2 |
We should reset content_length_remaining_ (to -1) when we
restart a transaction. Otherwise, the stale value of
content_length_remaining_ may be incorrectly applied to
the response to the restarted request.
I also reset upload_progress_ just to be safe.
R=darin
BUG=1314424
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_transaction_winhttp.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_transaction_winhttp.cc b/net/http/http_transaction_winhttp.cc index d609f24..ead0679 100644 --- a/net/http/http_transaction_winhttp.cc +++ b/net/http/http_transaction_winhttp.cc @@ -967,6 +967,9 @@ int HttpTransactionWinHttp::Restart(CompletionCallback* callback) { // ensure that we only have one asynchronous call at a time. DCHECK(!callback_); + content_length_remaining_ = -1; + upload_progress_ = 0; + int rv = SendRequest(); if (rv != ERR_IO_PENDING) return rv; |