summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/resource_handle_impl.cc6
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;
}