commit | 12c51e28dd3fc2e6d038b22192c830cf4209a8d5 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Nov 28 15:59:42 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Dec 01 17:37:27 2018 +0100 |
tree | 33ceafb7dd17488bcc6292a4e8e0a8fdc94ecbe7 | |
parent | ee9b5bfe89a255c1d6ea093507648a6984fbd45b [diff] |
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.