mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-20 10:21:01 +01:00
BUG/MINOR: http: Use out buffer instead of trash to display error snapshot
the function http_show_error_snapshot() must not use the trash buffer to append the HTTP error description. Instead, it must use the <out> buffer, its first argument. Note that concretely, this function always succeeds because <out> is always the trash buffer.
This commit is contained in:
parent
7805e2bc1f
commit
ed26fb8ac8
@ -7421,7 +7421,7 @@ int stats_check_uri(struct stream_interface *si, struct http_txn *txn, struct pr
|
|||||||
*/
|
*/
|
||||||
void http_show_error_snapshot(struct buffer *out, const struct error_snapshot *es)
|
void http_show_error_snapshot(struct buffer *out, const struct error_snapshot *es)
|
||||||
{
|
{
|
||||||
chunk_appendf(&trash,
|
chunk_appendf(out,
|
||||||
" stream #%d, stream flags 0x%08x, tx flags 0x%08x\n"
|
" stream #%d, stream flags 0x%08x, tx flags 0x%08x\n"
|
||||||
" HTTP msg state %s(%d), msg flags 0x%08x\n"
|
" HTTP msg state %s(%d), msg flags 0x%08x\n"
|
||||||
" HTTP chunk len %lld bytes, HTTP body len %lld bytes, channel flags 0x%08x :\n",
|
" HTTP chunk len %lld bytes, HTTP body len %lld bytes, channel flags 0x%08x :\n",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user