BUG/MINOR: mux-h1: report the correct frontend in error captures
The error captures provided in HTX by the H1 mux would always report the backend as the "other end". We need to assign the backend only on requests. No backport is needed.
This commit is contained in:
parent
567beb8a91
commit
598d7fc0c8
|
@ -827,7 +827,7 @@ static void h1_capture_bad_message(struct h1c *h1c, struct h1s *h1s,
|
||||||
struct proxy *other_end = sess->fe;
|
struct proxy *other_end = sess->fe;
|
||||||
union error_snapshot_ctx ctx;
|
union error_snapshot_ctx ctx;
|
||||||
|
|
||||||
if (h1s->cs->data)
|
if (h1s->cs->data && !(h1m->flags & H1_MF_RESP))
|
||||||
other_end = si_strm(h1s->cs->data)->be;
|
other_end = si_strm(h1s->cs->data)->be;
|
||||||
|
|
||||||
/* http-specific part now */
|
/* http-specific part now */
|
||||||
|
|
Loading…
Reference in New Issue