diff options
-rw-r--r-- | chrome_frame/urlmon_url_request.cc | 5 |
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(); |