summaryrefslogtreecommitdiffstats
path: root/net/http/http_stream_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_stream_parser.cc')
-rw-r--r--net/http/http_stream_parser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index 6c38db7..b56bd08 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -209,11 +209,11 @@ int HttpStreamParser::SendRequest(const std::string& request_line,
response_ = response;
// Put the peer's IP address and port into the response.
- AddressList address;
- int result = connection_->socket()->GetPeerAddress(&address);
+ IPEndPoint ip_endpoint;
+ int result = connection_->socket()->GetPeerAddress(&ip_endpoint);
if (result != OK)
return result;
- response_->socket_address = HostPortPair::FromIPEndPoint(address.front());
+ response_->socket_address = HostPortPair::FromIPEndPoint(ip_endpoint);
std::string request = request_line + headers.ToString();
request_body_.reset(request_body);