Update resource_request_details.patch

This commit is contained in:
Cheng Zhao 2017-01-19 16:09:21 +09:00
Родитель f86cae7420
Коммит 8a07ffa043
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1,9 +1,9 @@
diff --git a/content/public/browser/resource_request_details.cc b/content/public/browser/resource_request_details.cc
index bc7de5a..8aabacd 100644
index 0e790b68..0b5140a 100644
--- a/content/public/browser/resource_request_details.cc
+++ b/content/public/browser/resource_request_details.cc
@@ -22,6 +22,10 @@ ResourceRequestDetails::ResourceRequestDetails(const net::URLRequest* request,
ssl_cert_id(cert_id),
has_certificate(has_certificate),
ssl_cert_status(request->ssl_info().cert_status),
socket_address(request->GetSocketAddress()) {
+ if (request->response_info().headers.get())
@ -14,7 +14,7 @@ index bc7de5a..8aabacd 100644
resource_type = info->GetResourceType();
http_response_code =
diff --git a/content/public/browser/resource_request_details.h b/content/public/browser/resource_request_details.h
index 5b859ae..35669e12 100644
index e54e2c0..d817176 100644
--- a/content/public/browser/resource_request_details.h
+++ b/content/public/browser/resource_request_details.h
@@ -10,6 +10,7 @@