mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: stats: last fix was still wrong
Previous commit was still wrong, it broke add-header and set-header because we don't want to leave on these actions. The http_check_access_rule() function should be redesigned, it was initially thought for allow/deny rules but now it is executing other non-final rules and at the same time returning a pointer to the last final rule. That becomes a bit confusing and will need to be addressed before we implement redirect and return.
This commit is contained in:
parent
418c1a0a95
commit
8b80f0c9a2
@ -3113,7 +3113,7 @@ http_check_access_rule(struct proxy *px, struct list *rules, struct session *s,
|
||||
trash.str[trash.len++] = ' ';
|
||||
trash.len += build_logline(s, trash.str + trash.len, trash.size - trash.len, &rule->arg.hdr_add.fmt);
|
||||
http_header_add_tail2(&txn->req, &txn->hdr_idx, trash.str, trash.len);
|
||||
return rule;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user