Index: content/browser/loader/navigation_resource_handler.cc |
diff --git a/content/browser/loader/navigation_resource_handler.cc b/content/browser/loader/navigation_resource_handler.cc |
index 5ed02e805ead54a86f2cf39e36f2a78c6a6064c4..76a5d8898db62cc9eab803e85d01ef0342b9a153 100644 |
--- a/content/browser/loader/navigation_resource_handler.cc |
+++ b/content/browser/loader/navigation_resource_handler.cc |
@@ -85,6 +85,7 @@ bool NavigationResourceHandler::OnRequestRedirected( |
// TODO(davidben): Perform a CSP check here, and anything else that would have |
// been done renderer-side. |
NetLogObserver::PopulateResponseInfo(request(), response); |
+ response->head.encoded_data_length = request()->GetTotalReceivedBytes(); |
core_->NotifyRequestRedirected(redirect_info, response); |
*defer = true; |
return true; |