| Index: net/http/http_network_transaction.cc
|
| diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
|
| index 0a2c8c4c9fdcbba0913d185276ccf75d6565f7e4..f4df073b4bba5ad905631653d2cba46820c0daa7 100644
|
| --- a/net/http/http_network_transaction.cc
|
| +++ b/net/http/http_network_transaction.cc
|
| @@ -79,17 +79,20 @@ void ProcessAlternateProtocol(
|
| HttpNetworkSession* session,
|
| const HttpResponseHeaders& headers,
|
| const HostPortPair& http_host_port_pair) {
|
| - std::string alternate_protocol_str;
|
| -
|
| - if (!headers.EnumerateHeader(NULL, kAlternateProtocolHeader,
|
| - &alternate_protocol_str)) {
|
| - // Header is not present.
|
| + if (!headers.HasHeader(kAlternateProtocolHeader))
|
| return;
|
| +
|
| + std::vector<std::string> alternate_protocol_values;
|
| + void* iter = NULL;
|
| + std::string alternate_protocol_str;
|
| + while (headers.EnumerateHeader(&iter, kAlternateProtocolHeader,
|
| + &alternate_protocol_str)) {
|
| + alternate_protocol_values.push_back(alternate_protocol_str);
|
| }
|
|
|
| session->http_stream_factory()->ProcessAlternateProtocol(
|
| session->http_server_properties(),
|
| - alternate_protocol_str,
|
| + alternate_protocol_values,
|
| http_host_port_pair,
|
| *session);
|
| }
|
|
|