Merge branch 'master' into http-parser-unknown-method
This commit is contained in:
commit
f90f40e3b5
|
@ -310,13 +310,6 @@ int Http2DownstreamConnection::push_request_headers() {
|
||||||
|
|
||||||
http2::copy_headers_to_nva_nocopy(nva, req.fs.headers());
|
http2::copy_headers_to_nva_nocopy(nva, req.fs.headers());
|
||||||
|
|
||||||
bool chunked_encoding = false;
|
|
||||||
auto transfer_encoding = req.fs.header(http2::HD_TRANSFER_ENCODING);
|
|
||||||
if (transfer_encoding &&
|
|
||||||
util::strieq_l("chunked", (*transfer_encoding).value)) {
|
|
||||||
chunked_encoding = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!http2conf.no_cookie_crumbling) {
|
if (!http2conf.no_cookie_crumbling) {
|
||||||
downstream_->crumble_request_cookie(nva);
|
downstream_->crumble_request_cookie(nva);
|
||||||
}
|
}
|
||||||
|
@ -425,6 +418,8 @@ int Http2DownstreamConnection::push_request_headers() {
|
||||||
DCLOG(INFO, this) << "HTTP request headers\n" << ss.str();
|
DCLOG(INFO, this) << "HTTP request headers\n" << ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto transfer_encoding = req.fs.header(http2::HD_TRANSFER_ENCODING);
|
||||||
|
|
||||||
// Add body as long as transfer-encoding is given even if
|
// Add body as long as transfer-encoding is given even if
|
||||||
// req.fs.content_length == 0 to forward trailer fields.
|
// req.fs.content_length == 0 to forward trailer fields.
|
||||||
if (req.method_token == HTTP_CONNECT || transfer_encoding ||
|
if (req.method_token == HTTP_CONNECT || transfer_encoding ||
|
||||||
|
|
Loading…
Reference in New Issue