]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Add a flag on H1 streams with a response known to be bodyless
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Dec 2020 15:08:38 +0000 (16:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:37:14 +0000 (16:37 +0100)
commit5696f5450ee2f14ba962ef365569599be33df658
tree066ec98a6e6001d7c1d99b6a9377120026f97e46
parentd1ac2b90cd0bcd76883197869e6c64a52fbd82c5
MINOR: mux-h1: Add a flag on H1 streams with a response known to be bodyless

In HTTP/1, responses to HEAD requests and 204/304 must not have payload. The
H1S_F_BODYLESS_RESP flag is not set on streams that should handle such
responses, on the client side and the server side.

On the client side, this flag is set when a HEAD request is parsed and when
a 204/304 response is emitted. On the server side, this happends when a HEAD
request is emitted or a 204/304 response is parsed.
src/mux_h1.c