]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Add "transfer-encoding" header on outgoing requests if needed
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Feb 2019 09:33:16 +0000 (10:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Feb 2019 15:25:06 +0000 (16:25 +0100)
commit1f890ddbe278218b259653508f3379dcded9c1a3
tree2fbb8ddffc5a0077ac1a962b42d5734a83b379a4
parent44af3cfca343bba1f7e5f096b07781f3ebdb9b8a
BUG/MINOR: mux-h1: Add "transfer-encoding" header on outgoing requests if needed

As for outgoing response, if an HTTP/1.1 or above request is sent to a server
with neither the headers "content-length" nor "transfer-encoding", it is
considered as a chunked request and the header "transfer-encoding: chunked" is
automatically added. Of course, it is only true for requests with a
body. Concretely, it only happens for incoming HTTP/2 requests sent to an
HTTP/1.1 server.

This patch must be backported to 1.9.
src/mux_h1.c