]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proto_htx: Use full HTX messages to send 401 and 407 responses
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Nov 2018 14:59:42 +0000 (15:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 16:37:27 +0000 (17:37 +0100)
commit12c51e28dd3fc2e6d038b22192c830cf4209a8d5
tree33ceafb7dd17488bcc6292a4e8e0a8fdc94ecbe7
parentee9b5bfe89a255c1d6ea093507648a6984fbd45b
MINOR: proto_htx: Use full HTX messages to send 401 and 407 responses

Instead of replying by adding an OOB block in the HTX structure, we now add a
valid HTX message. The old code relied on the function http_reply_and_close() to
send 401/407 responses. Now, we push it in the response's buffer. So we take
care to drain the request's channel and to shutdown the response's channel for
the read.
src/proto_htx.c