]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Add a flag to ignore the request payload
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 16 May 2024 15:11:50 +0000 (17:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 May 2024 14:33:53 +0000 (16:33 +0200)
commit8e55d291098835685b3796988ada0c063e011b5a
tree5e5162847120ac4b650dcccedf66a98260d15d32
parent45a45c917ae1cd800ade8344ec4ecdd9de55e9fc
MINOR: mux-h1: Add a flag to ignore the request payload

There was a flag to skip the response payload on output, if any, by stating
it is bodyless. It is used for responses to HEAD requests or for 204/304
responses. This allow rewrites during analysis. For instance a HEAD request
can be rewrite to a GET request for any reason (ie, a server not supporting
HEAD requests). In this case, the server will send a response with a
payload. On frontend side, the payload will be skipped and a valid response
(without payload) will be sent to the client.

With this patch we introduce the corresponding flag for the request. It will
be used to skip the request payload. In addition, when payload must be
skipped for a request or a response, The zero-copy data forwarding is now
disabled.
include/haproxy/mux_h1-t.h
src/mux_h1.c