projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c32f1
)
MINOR: h1-htx: Declare successful tunnel establishment as bodyless
author
Christopher Faulet
<cfaulet@haproxy.com>
Mon, 2 Oct 2023 08:42:32 +0000
(10:42 +0200)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Wed, 4 Oct 2023 13:34:18 +0000
(15:34 +0200)
Successful responses to a CONNECT or to a upgrade request have no payload.
Be explicit on this point by setting HTX_SL_F_BODYLESS_RESP flag on the HTX
start-line.
src/h1_htx.c
patch
|
blob
|
history
diff --git
a/src/h1_htx.c
b/src/h1_htx.c
index
f0c525e
..
f3b61b7
100644
(file)
--- a/
src/h1_htx.c
+++ b/
src/h1_htx.c
@@
-288,6
+288,7
@@
static int h1_postparse_res_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx
h1m->flags &= ~(H1_MF_CLEN|H1_MF_CHNK);
h1m->flags |= H1_MF_XFER_LEN;
h1m->curr_len = h1m->body_len = 0;
+ flags |= HTX_SL_F_BODYLESS_RESP;
}
else if ((h1m->flags & H1_MF_METH_HEAD) || (code >= 100 && code < 200) ||
(code == 204) || (code == 304)) {