http_find_header() is used to find the next occurrence of a header matching on
its name. When found, the matching header is returned with the corresponding
value. This value may be empty. Unfortunatly, because of a bug, an empty value
make the function fail.
This patch must be backported to 2.1, 2.0 and 1.9.
(cherry picked from commit
f3ad62996fa3bab907429ce25a2ada10186b4242)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
v.len--;
ctx->lws_after++;
}
- if (!v.len)
- continue;
ctx->blk = blk;
ctx->value = v;
return 1;