Commit 3111138c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Don't add transfer-encoding to CONNECT request

parent 0f4d01c2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment