diff --git a/proxy/http/Http1ClientSession.cc b/proxy/http/Http1ClientSession.cc index d070bd9462f..fa1369aef00 100644 --- a/proxy/http/Http1ClientSession.cc +++ b/proxy/http/Http1ClientSession.cc @@ -188,7 +188,9 @@ Http1ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOB read_buffer = iobuf ? iobuf : new_MIOBuffer(HTTP_HEADER_BUFFER_SIZE_INDEX); _reader = reader ? reader : read_buffer->alloc_reader(); + trans.set_reader(_reader); + trans.upstream_outbound_options = *accept_options; _handle_if_ssl(new_vc); diff --git a/proxy/http/HttpSessionAccept.cc b/proxy/http/HttpSessionAccept.cc index ea9d07556df..29416da1125 100644 --- a/proxy/http/HttpSessionAccept.cc +++ b/proxy/http/HttpSessionAccept.cc @@ -58,8 +58,6 @@ HttpSessionAccept::accept(NetVConnection *netvc, MIOBuffer *iobuf, IOBufferReade new_session->setThreadAffinity(this_ethread()); new_session->new_connection(netvc, iobuf, reader); - new_session->trans.upstream_outbound_options = *new_session->accept_options; - return true; }