Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1586)

Unified Diff: net/http/http_stream_parser.cc

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_EXPORT to *PortOnAddressList. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_stream_parser.cc
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index 31c7b736866733ebeed960099e23d17a479fc03e..78bbf92ec039ad596b3797d44be62cf970fbce78 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -213,7 +213,7 @@ int HttpStreamParser::SendRequest(const std::string& request_line,
int result = connection_->socket()->GetPeerAddress(&address);
if (result != OK)
return result;
- response_->socket_address = HostPortPair::FromAddrInfo(address.head());
+ response_->socket_address = HostPortPair::FromIPEndPoint(address[0]);
eroman 2012/05/04 01:08:41 [optional] nit: I seem to recall some places using
std::string request = request_line + headers.ToString();
request_body_.reset(request_body);

Powered by Google App Engine
This is Rietveld 408576698