Chromium Code Reviews| Index: net/http/http_proxy_client_socket.cc |
| diff --git a/net/http/http_proxy_client_socket.cc b/net/http/http_proxy_client_socket.cc |
| index bc970b57a4d9d0091990b9ecff00661cdf630962..2eec09c8bb34dfbfb569217d1c6456cb05d4bf6a 100644 |
| --- a/net/http/http_proxy_client_socket.cc |
| +++ b/net/http/http_proxy_client_socket.cc |
| @@ -28,7 +28,6 @@ namespace net { |
| HttpProxyClientSocket::HttpProxyClientSocket( |
| ClientSocketHandle* transport_socket, |
| - const GURL& request_url, |
| const std::string& user_agent, |
| const HostPortPair& endpoint, |
| const HostPortPair& proxy_server, |
| @@ -60,8 +59,8 @@ HttpProxyClientSocket::HttpProxyClientSocket( |
| proxy_delegate_(proxy_delegate), |
| net_log_(transport_socket->socket()->NetLog()) { |
| // Synthesize the bits of a request that we actually use. |
| - request_.url = request_url; |
| - request_.method = "GET"; |
| + request_.url = GURL("https://" + endpoint.ToString()); |
|
ramant (doing other things)
2015/04/06 05:27:53
nit: should we support http and do (is_https_proxy
ramant (doing other things)
2015/04/06 05:34:13
it looks like CONNECT could be used for port 80.
Ryan Hamilton
2015/04/06 14:06:23
So this class in only used when making CONNECT tun
|
| + request_.method = "CONNECT"; |
| if (!user_agent.empty()) |
| request_.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, |
| user_agent); |