diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 00:02:26 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 00:02:26 +0000 |
commit | f388292e2415c365d474472198c62db5178ff234 (patch) | |
tree | 4cf6f53e45354cc32fa65fb4c1d47dd5b40a0cb8 /webkit/glue/weburlloader_impl.cc | |
parent | 4215d0e3f271e97023c12d902cb091c5f191227f (diff) | |
download | chromium_src-f388292e2415c365d474472198c62db5178ff234.zip chromium_src-f388292e2415c365d474472198c62db5178ff234.tar.gz chromium_src-f388292e2415c365d474472198c62db5178ff234.tar.bz2 |
When handling a redirect, set the downloadToFile attribute of the newRequest that is given
to the client.
Review URL: http://codereview.chromium.org/3606004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r-- | webkit/glue/weburlloader_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc index aa63fc2..ad3e5fe 100644 --- a/webkit/glue/weburlloader_impl.cc +++ b/webkit/glue/weburlloader_impl.cc @@ -478,6 +478,7 @@ bool WebURLLoaderImpl::Context::OnReceivedRedirect( // request that resulted from the redirect. WebURLRequest new_request(new_url); new_request.setFirstPartyForCookies(request_.firstPartyForCookies()); + new_request.setDownloadToFile(request_.downloadToFile()); WebString referrer_string = WebString::fromUTF8("Referer"); WebString referrer = request_.httpHeaderField(referrer_string); |