diff options
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r-- | net/http/http_network_transaction.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index 6dd62fd..0b570cc 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -37,6 +37,7 @@ #include "net/http/http_proxy_client_socket_pool.h" #include "net/http/http_request_headers.h" #include "net/http/http_request_info.h" +#include "net/http/http_response_body_drainer.h" #include "net/http/http_response_headers.h" #include "net/http/http_response_info.h" #include "net/http/http_stream_request.h" @@ -188,7 +189,10 @@ HttpNetworkTransaction::~HttpNetworkTransaction() { // HTTP, it can vary depending on whether or not we're pipelining. It's // stream dependent, so the different subtypes should be implementing // their solutions. - HttpUtil::DrainStreamBodyAndClose(stream_.release()); + HttpResponseBodyDrainer* drainer = + new HttpResponseBodyDrainer(stream_.release()); + drainer->Start(); + // |drainer| will delete itself. } } } |