nghttpx: Don't add transfer-encoding to CONNECT request
This commit is contained in:
parent
0f4d01c25c
commit
3111138ca3
|
@ -164,7 +164,8 @@ int HttpDownstreamConnection::push_request_headers()
|
||||||
hdrs += "\r\n";
|
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_->get_norm_request_header("content-length") == end_headers) {
|
||||||
|
|
||||||
downstream_->set_chunked_request(true);
|
downstream_->set_chunked_request(true);
|
||||||
|
|
Loading…
Reference in New Issue