| Index: net/http/http_stream_parser.cc
|
| ===================================================================
|
| --- net/http/http_stream_parser.cc (revision 71766)
|
| +++ net/http/http_stream_parser.cc (working copy)
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/metrics/histogram.h"
|
| +#include "net/base/address_list.h"
|
| #include "net/base/auth.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/ssl_cert_request_info.h"
|
| @@ -62,6 +63,13 @@
|
| request_line, headers)));
|
| }
|
| response_ = response;
|
| +
|
| + // Put the peer's ip:port into the response, for inquisitive users.
|
| + AddressList address;
|
| + connection_->socket()->GetPeerAddress(&address);
|
| + response_->socket_address =
|
| + address.head() ? NetAddressToStringWithPort(address.head()) : "";
|
| +
|
| std::string request = request_line + headers.ToString();
|
| scoped_refptr<StringIOBuffer> headers_io_buf(new StringIOBuffer(request));
|
| request_headers_ = new DrainableIOBuffer(headers_io_buf,
|
|
|