From 9a83566a19710d90b7c543d6b79640e055441bd1 Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Wed, 16 Feb 2011 14:40:18 +0000 Subject: Fix for bug 3424689 Corrupt (truncated) downloads for apk from browser Sending the url of the response instead of the request, so using the new url if there is a redirect. Change-Id: Ic314d315a6e9b5be837c302cdcfd740cc185466d --- WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp') diff --git a/WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp b/WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp index 642a81a..dd1d972 100644 --- a/WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp +++ b/WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp @@ -222,7 +222,7 @@ void WebUrlLoaderClient::downloadFile() if (m_response) { std::string contentDisposition; m_response->getHeader("content-disposition", &contentDisposition); - m_webFrame->downloadStart(m_request->getUrl(), m_request->getUserAgent(), contentDisposition, m_response->getMimeType(), m_response->getExpectedSize()); + m_webFrame->downloadStart(m_response->getUrl(), m_request->getUserAgent(), contentDisposition, m_response->getMimeType(), m_response->getExpectedSize()); m_isCertMimeType = isMimeTypeForCert(m_response->getMimeType()); // Currently, only certificate mime type needs to receive the data. -- cgit v1.1