]> git.kaiwu.me - nginx.git/commit
HTTP/2: avoid adding Content-Length for requests without body.
authorValentin Bartenev <vbart@nginx.com>
Thu, 16 Jun 2016 17:55:11 +0000 (20:55 +0300)
committerValentin Bartenev <vbart@nginx.com>
Thu, 16 Jun 2016 17:55:11 +0000 (20:55 +0300)
commit6e2606d8e5d5b1072db31288a1421cfec56fb9d8
tree39ec3d93d62ccf0de6648c4c489782e5e650321c
parent5c66c4aad01be83183395e1ecc241267d45c2e8d
HTTP/2: avoid adding Content-Length for requests without body.

There is no reason to add the "Content-Length: 0" header to a proxied request
without body if the header isn't presented in the original request.

Thanks to Amazon.
src/http/v2/ngx_http_v2.c