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

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: Merge to head. 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 a51e239e96817b1cea78de933d63c2ad45bd2d08..68212eb2fc4cda16c04974c4d451984464a89188 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -248,7 +248,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