summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-12 04:59:29 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-12 04:59:29 +0000
commit1f3b42062af595dee96919a4cd11d84d8b3b888e (patch)
treec60bcb7dccc9f51d2dcd0a8a1322b17643016241
parent8365eef5ddc3c90aa10f3ed08c83f290a277096f (diff)
downloadchromium_src-1f3b42062af595dee96919a4cd11d84d8b3b888e.zip
chromium_src-1f3b42062af595dee96919a4cd11d84d8b3b888e.tar.gz
chromium_src-1f3b42062af595dee96919a4cd11d84d8b3b888e.tar.bz2
Fix a stupid bug introduced by my previous change to fix the chrome frame network tests, which causes
the HTTP post redirect test to fail. TBR=tommi Bug=30118 Review URL: http://codereview.chromium.org/494007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34414 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome_frame/urlmon_url_request.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index 747e4ac..8446500 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -208,8 +208,9 @@ STDMETHODIMP UrlmonUrlRequest::OnProgress(ULONG progress, ULONG max_progress,
redirect_url_ = status_text;
// At times we receive invalid redirect codes like 0, 200, etc. We
// default to 302 in this case.
- if (!net::HttpResponseHeaders::IsRedirectResponseCode(redirect_status_))
- redirect_status_ = kDefaultHttpRedirectCode;
+ if (!net::HttpResponseHeaders::IsRedirectResponseCode(redirect_status))
+ redirect_status = kDefaultHttpRedirectCode;
+ redirect_status_ = redirect_status;
// Chrome should decide whether a redirect has to be followed. To achieve
// this we send over a fake response to Chrome and abort the redirect.
std::string headers = GetHttpHeaders();