diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index f5a2d7ad..d1627919 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -164,7 +164,8 @@ int HttpDownstreamConnection::push_request_headers() hdrs += "\r\n"; } - if(downstream_->get_request_http2_expect_body() && + if(downstream_->get_request_method() != "CONNECT" && + downstream_->get_request_http2_expect_body() && downstream_->get_norm_request_header("content-length") == end_headers) { downstream_->set_chunked_request(true);