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.
diff --git a/src/proto_http.c b/src/proto_http.c
index 117d274..56035b9 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -3526,7 +3526,7 @@
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;
}
}