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 fbfcc1d2e804fea1314a25c6b4abe38a73510375..9bae609a613914ac4360dd2a4b6d42530c7e37cc 100644 |
--- a/net/spdy/spdy_proxy_client_socket.cc |
+++ b/net/spdy/spdy_proxy_client_socket.cc |
@@ -265,7 +265,6 @@ int SpdyProxyClientSocket::GetLocalAddress(IPEndPoint* address) const { |
void SpdyProxyClientSocket::LogBlockedTunnelResponse() const { |
ProxyClientSocket::LogBlockedTunnelResponse( |
response_.headers->response_code(), |
- request_.url, |
/* is_https_proxy = */ true); |
} |
@@ -354,10 +353,15 @@ int SpdyProxyClientSocket::DoSendRequest() { |
auth_->AddAuthorizationHeader(&authorization_headers); |
} |
+ std::string user_agent; |
+ if (!request_.extra_headers.GetHeader(HttpRequestHeaders::kUserAgent, |
+ &user_agent)) { |
+ user_agent.clear(); |
+ } |
std::string request_line; |
HttpRequestHeaders request_headers; |
- BuildTunnelRequest(request_, authorization_headers, endpoint_, &request_line, |
- &request_headers); |
+ BuildTunnelRequest(endpoint_, authorization_headers, user_agent, |
+ &request_line, &request_headers); |
net_log_.AddEvent( |
NetLog::TYPE_HTTP_TRANSACTION_SEND_TUNNEL_HEADERS, |