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 | c6b0a8942f792c9fae204eee8ac60042573a8726 (patch) | |
tree | 2a430cbf23b4a8c1c3dfdfa3edf95c8692a5bcea /src/h1_htx.c | |
parent | Adding debian version 3.0.0-1. (diff) | |
download | haproxy-c6b0a8942f792c9fae204eee8ac60042573a8726.tar.xz haproxy-c6b0a8942f792c9fae204eee8ac60042573a8726.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. */ |