summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 21:16:17 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 21:16:17 +0000
commit5dc791943076869a388544d8d32eabe3df62c53c (patch)
tree82453804646baa515784b28d1e81f7f13a040352 /net/url_request/url_request.cc
parent1f5d0920228df6addb772ac2ad6a665be4ebd3fe (diff)
downloadchromium_src-5dc791943076869a388544d8d32eabe3df62c53c.zip
chromium_src-5dc791943076869a388544d8d32eabe3df62c53c.tar.gz
chromium_src-5dc791943076869a388544d8d32eabe3df62c53c.tar.bz2
Fix 307 redirects of a POST request to actually send the body again, and add a
test. Note: the fix is trivial, but adding support for a test required teaching the FileHandler of testserver to consume a post body. BUG=16832 TEST=covered by unit test R=abarth Review URL: http://codereview.chromium.org/149710 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.cc')
-rw-r--r--net/url_request/url_request.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 9f6e229..7dfad41 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -438,9 +438,9 @@ int URLRequest::Redirect(const GURL& location, int http_status_code) {
// prompt and so shall we.
strip_post_specific_headers = method_ == "POST";
method_ = "GET";
+ upload_ = NULL;
}
url_ = location;
- upload_ = NULL;
--redirect_limit_;
if (strip_post_specific_headers) {