Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: net/url_request/url_request_http_job.cc

Issue 6711046: Add an opt-out header for HTTP throttling. Never throttle for localhost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index dd6d63e10314206312b4e219a6a3555e6935921a..400d47e8a9909aa906c19cf57b60d9dfef3eb601 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -210,7 +210,8 @@ void URLRequestHttpJob::NotifyHeadersComplete() {
if (!is_cached_content_) {
URLRequestThrottlerHeaderAdapter response_adapter(
response_info_->headers);
- throttling_entry_->UpdateWithResponse(&response_adapter);
+ throttling_entry_->UpdateWithResponse(request_info_.url.host(),
+ &response_adapter);
}
ProcessStrictTransportSecurityHeader();

Powered by Google App Engine
This is Rietveld 408576698