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

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-03 23:44:20 +09:00
parent 0f4d01c25c
commit 3111138ca3
1 changed files with 2 additions and 1 deletions

View File

@ -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);