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

Unified Diff: net/http/http_network_transaction.cc

Issue 1310583002: Change |use_alternative_service| not to disable Alternate Protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests. Created 5 years, 4 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
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 135d0e40bce2bbe5efd76f73c9ed60bce1b0ed13..0733fdf4187a309b11cfb5eed5eb54228b856c00 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -70,7 +70,8 @@ namespace {
void ProcessAlternativeServices(HttpNetworkSession* session,
const HttpResponseHeaders& headers,
const HostPortPair& http_host_port_pair) {
- if (headers.HasHeader(kAlternativeServiceHeader)) {
+ if (session->params().use_alternative_services &&
+ headers.HasHeader(kAlternativeServiceHeader)) {
std::string alternative_service_str;
headers.GetNormalizedHeader(kAlternativeServiceHeader,
&alternative_service_str);
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698