summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r--net/http/http_network_transaction.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 135d0e4..0733fdf 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);