mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-02 03:30:59 +02:00
BUG/MINOR: log: also wait for the response when logging response headers
A typo in commit e51be30f78 ("BUG/MINOR: log: consider format expression
dependencies to decide when to log") made HRSHP appear twice (persistent
response) while the second one ought to be HRSHV (volatile response, e.g.
header values). This is harmless in practice since logs always wait for
at least headers.
This should be backported wherever the patch above was backported.
This commit is contained in:
parent
dca4c379ce
commit
16485cdebe
@ -1114,7 +1114,7 @@ int lf_expr_postcheck(struct lf_expr *lf_expr, struct proxy *px, char **err)
|
||||
px->to_log |= LW_REQ;
|
||||
|
||||
/* anything involving the response needs to happen at response time */
|
||||
if (expr->fetch->use & (SMP_USE_HRSHP|SMP_USE_HRSHP|SMP_USE_HRSBO))
|
||||
if (expr->fetch->use & (SMP_USE_HRSHP|SMP_USE_HRSHV|SMP_USE_HRSBO))
|
||||
px->to_log |= LW_RESP;
|
||||
|
||||
/* anything involving the end of the response needs to happen after final bytes */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user