Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4648)

Unified Diff: chrome/common/net/url_fetcher.cc

Issue 5322015: Fixed a bug with URLFetcher where retrying the request would append the new r... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher_unittest.cc » ('j') | chrome/common/net/url_fetcher_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_fetcher.cc
===================================================================
--- chrome/common/net/url_fetcher.cc (revision 67655)
+++ chrome/common/net/url_fetcher.cc (working copy)
@@ -362,6 +362,9 @@
if (!extra_request_headers_.IsEmpty())
request_->SetExtraRequestHeaders(extra_request_headers_);
+ // There might be data left over from a previous request attempt.
+ data_.clear();
+
request_->Start();
}
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher_unittest.cc » ('j') | chrome/common/net/url_fetcher_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698