[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:
Willy Tarreau 2007-03-30 12:02:43 +02:00
parent d661cc06af
commit f2f0ee81ad

View File

@ -1573,15 +1573,14 @@ int process_cli(struct session *t)
} }
old_idx = cur_idx; old_idx = cur_idx;
} }
}
/* add request headers from the rule sets in the same order */ /* add request headers from the rule sets in the same order */
for (cur_idx = 0; cur_idx < rule_set->nb_reqadd; cur_idx++) { for (cur_idx = 0; cur_idx < rule_set->nb_reqadd; cur_idx++) {
if (unlikely(http_header_add_tail(req, if (unlikely(http_header_add_tail(req,
&txn->req, &txn->req,
&txn->hdr_idx, &txn->hdr_idx,
rule_set->req_add[cur_idx])) < 0) rule_set->req_add[cur_idx])) < 0)
goto return_bad_req; goto return_bad_req;
}
} }
/* check if stats URI was requested, and if an auth is needed */ /* check if stats URI was requested, and if an auth is needed */