diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-11 17:06:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-11 17:06:51 +0000 |
commit | 5dbda37aa1630f86a27f9168f0969fbe19656e13 (patch) | |
tree | b7a2b9a9a3e5aecff461921254b750a763c31793 /src/h1_htx.c | |
parent | Releasing progress-linux version 3.0.0-1~progress7.99u1. (diff) | |
download | haproxy-5dbda37aa1630f86a27f9168f0969fbe19656e13.tar.xz haproxy-5dbda37aa1630f86a27f9168f0969fbe19656e13.zip |
Merging upstream version 3.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/h1_htx.c')
-rw-r--r-- | src/h1_htx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/h1_htx.c b/src/h1_htx.c index f4f13fc..562c0f2 100644 --- a/src/h1_htx.c +++ b/src/h1_htx.c @@ -295,7 +295,8 @@ static int h1_postparse_res_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx /* Responses known to have no body. */ h1m->flags |= H1_MF_XFER_LEN; h1m->curr_len = h1m->body_len = 0; - flags |= HTX_SL_F_BODYLESS_RESP; + if (code >= 200) + flags |= HTX_SL_F_BODYLESS_RESP; } else if (h1m->flags & (H1_MF_CLEN|H1_MF_CHNK)) { /* Responses with a known body length. */ |