From 3111138ca3570c815d2cf247c3bf9c7694467282 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 3 Jul 2014 23:44:20 +0900 Subject: [PATCH] nghttpx: Don't add transfer-encoding to CONNECT request --- src/shrpx_http_downstream_connection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);