Index: net/spdy/spdy_proxy_client_socket_unittest.cc |
diff --git a/net/spdy/spdy_proxy_client_socket_unittest.cc b/net/spdy/spdy_proxy_client_socket_unittest.cc |
index e3f370fbe843b66d94ce74797638527ac5ad2002..cec88be2ff776ae3a8b765c7ebc9af910f629526 100644 |
--- a/net/spdy/spdy_proxy_client_socket_unittest.cc |
+++ b/net/spdy/spdy_proxy_client_socket_unittest.cc |
@@ -312,8 +312,12 @@ void SpdyProxyClientSocketTest::AssertAsyncWriteWithReadsSucceeds( |
void SpdyProxyClientSocketTest::PopulateConnectRequestIR( |
SpdyHeaderBlock* block) { |
(*block)[spdy_util_.GetMethodKey()] = "CONNECT"; |
- (*block)[spdy_util_.GetPathKey()] = kOriginHostPort; |
- (*block)[spdy_util_.GetHostKey()] = kOriginHost; |
+ if (spdy_util_.spdy_version() == HTTP2) { |
+ (*block)[spdy_util_.GetHostKey()] = kOriginHostPort; |
+ } else { |
+ (*block)[spdy_util_.GetPathKey()] = kOriginHostPort; |
+ (*block)[spdy_util_.GetHostKey()] = kOriginHost; |
+ } |
(*block)["user-agent"] = kUserAgent; |
spdy_util_.MaybeAddVersionHeader(block); |
} |