Chromium Code Reviews| Index: net/spdy/spdy_proxy_client_socket.cc |
| diff --git a/net/spdy/spdy_proxy_client_socket.cc b/net/spdy/spdy_proxy_client_socket.cc |
| index 7a7a03ab05e7973a946e57f56fcaf19a56ffb5eb..da65fa35816cf20b6b19d6258ce6fdb6b68bdc66 100644 |
| --- a/net/spdy/spdy_proxy_client_socket.cc |
| +++ b/net/spdy/spdy_proxy_client_socket.cc |
| @@ -372,10 +372,16 @@ int SpdyProxyClientSocket::DoSendRequest() { |
| request_.extra_headers.MergeFrom(request_headers); |
| linked_ptr<spdy::SpdyHeaderBlock> headers(new spdy::SpdyHeaderBlock()); |
| CreateSpdyHeadersFromHttpRequest(request_, request_headers, headers.get(), |
| - true); |
| - // Reset the URL to be the endpoint of the connection |
| - (*headers)["url"] = endpoint_.ToString(); |
| - headers->erase("scheme"); |
| + spdy_stream_->GetProtocolVersion(), true); |
| + // Reset the URL to be the endpoint of the connection |
| + if (spdy_stream_->GetProtocolVersion() > 2) { |
|
ramant (doing other things)
2012/03/15 05:41:34
nit: Please move comment left by 2 spaces. (duplic
Ryan Hamilton
2012/03/15 16:38:06
Done.
|
| + (*headers)[":path"] = endpoint_.ToString(); |
| + headers->erase(":scheme"); |
| + } else { |
| + // Reset the URL to be the endpoint of the connection |
| + (*headers)["url"] = endpoint_.ToString(); |
| + headers->erase("scheme"); |
| + } |
| spdy_stream_->set_spdy_headers(headers); |
| return spdy_stream_->SendRequest(true); |