commit | 5696f5450ee2f14ba962ef365569599be33df658 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Dec 02 16:08:38 2020 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Jan 28 16:37:14 2021 +0100 |
tree | 066ec98a6e6001d7c1d99b6a9377120026f97e46 | |
parent | d1ac2b90cd0bcd76883197869e6c64a52fbd82c5 [diff] |
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.