diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 18:18:33 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 18:18:33 +0000 |
commit | 78a5233098227f7382c800d2be847016cc091a8b (patch) | |
tree | 1f86bfa9c41fb3a989f468ded3daa7d05e28625b /webkit/glue/resource_handle_impl.cc | |
parent | 76ed8259a24580481cb59d3499d9da194b0146d1 (diff) | |
download | chromium_src-78a5233098227f7382c800d2be847016cc091a8b.zip chromium_src-78a5233098227f7382c800d2be847016cc091a8b.tar.gz chromium_src-78a5233098227f7382c800d2be847016cc091a8b.tar.bz2 |
Fix an uninitialized variable in data: urls.
Properly initialize ResourceLoaderBridge::ResponseInfo for data: urls. This is similar to the problem fixed in r5921.
Review URL: http://codereview.chromium.org/12906
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_handle_impl.cc')
-rw-r--r-- | webkit/glue/resource_handle_impl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/resource_handle_impl.cc b/webkit/glue/resource_handle_impl.cc index 322e0b8..6df344f 100644 --- a/webkit/glue/resource_handle_impl.cc +++ b/webkit/glue/resource_handle_impl.cc @@ -90,11 +90,15 @@ static bool GetInfoFromDataUrl(const GURL& url, std::string mime_type; std::string charset; if (net::DataURL::Parse(url, &mime_type, &charset, data)) { + *status = URLRequestStatus(URLRequestStatus::SUCCESS, 0); info->request_time = Time::Now(); info->response_time = Time::Now(); + info->headers = NULL; info->mime_type.swap(mime_type); info->charset.swap(charset); - *status = URLRequestStatus(URLRequestStatus::SUCCESS, 0); + info->security_info.clear(); + info->content_length = -1; + return true; } |