mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-18 10:08:36 -05:00
BUG/MINOR: http: Set brackets for the unlikely macro at the right place
When test on the header "Early-Data" is made, the unlikely macro must encompass the condition. This patch must be backported in 1.8.
This commit is contained in:
parent
8318885487
commit
005e79e5dd
1 changed files with 1 additions and 1 deletions
|
|
@ -3526,7 +3526,7 @@ int http_process_req_common(struct stream *s, struct channel *req, int an_bit, s
|
|||
ci_head(&s->req), &txn->hdr_idx, &ctx)) {
|
||||
if (unlikely(http_header_add_tail2(&txn->req,
|
||||
&txn->hdr_idx, "Early-Data: 1",
|
||||
strlen("Early-Data: 1"))) < 0) {
|
||||
strlen("Early-Data: 1")) < 0)) {
|
||||
goto return_bad_req;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue