mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 13:16:57 +00:00
[BUG] fix reqadd when no option httpclose is used.
Due to a code indentation mismatch, the rspadd headers were only added if option httpclose was not set.
This commit is contained in:
parent
d661cc06af
commit
f2f0ee81ad
@ -1573,15 +1573,14 @@ int process_cli(struct session *t)
|
||||
}
|
||||
old_idx = cur_idx;
|
||||
}
|
||||
|
||||
/* add request headers from the rule sets in the same order */
|
||||
for (cur_idx = 0; cur_idx < rule_set->nb_reqadd; cur_idx++) {
|
||||
if (unlikely(http_header_add_tail(req,
|
||||
&txn->req,
|
||||
&txn->hdr_idx,
|
||||
rule_set->req_add[cur_idx])) < 0)
|
||||
goto return_bad_req;
|
||||
}
|
||||
}
|
||||
/* add request headers from the rule sets in the same order */
|
||||
for (cur_idx = 0; cur_idx < rule_set->nb_reqadd; cur_idx++) {
|
||||
if (unlikely(http_header_add_tail(req,
|
||||
&txn->req,
|
||||
&txn->hdr_idx,
|
||||
rule_set->req_add[cur_idx])) < 0)
|
||||
goto return_bad_req;
|
||||
}
|
||||
|
||||
/* check if stats URI was requested, and if an auth is needed */
|
||||
|
Loading…
Reference in New Issue
Block a user