mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 06:17:26 +00:00
BUG/MINOR: fix options forwardfor if-none when an alternative header name is specified
This commit is contained in:
parent
6471afb43d
commit
1611e2d4a1
@ -3544,7 +3544,7 @@ int http_process_request(struct session *s, struct buffer *req, int an_bit)
|
||||
struct hdr_ctx ctx = { .idx = 0 };
|
||||
|
||||
if (!((s->fe->options | s->be->options) & PR_O_FF_ALWAYS) &&
|
||||
http_find_header2("X-Forwarded-For", 15, txn->req.sol, &txn->hdr_idx, &ctx)) {
|
||||
http_find_header2(s->be->fwdfor_hdr_name, s->be->fwdfor_hdr_len, txn->req.sol, &txn->hdr_idx, &ctx)) {
|
||||
/* The header is set to be added only if none is present
|
||||
* and we found it, so don't do anything.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user