mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 01:10:47 -04:00
BUG/MINOR: http-htx: Don't make http_find_header() fail if the value is empty
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.
This commit is contained in:
parent
be8a387e93
commit
f3ad62996f
1 changed files with 0 additions and 2 deletions
|
|
@ -112,8 +112,6 @@ int http_find_header(const struct htx *htx, const struct ist name,
|
|||
v.len--;
|
||||
ctx->lws_after++;
|
||||
}
|
||||
if (!v.len)
|
||||
continue;
|
||||
ctx->blk = blk;
|
||||
ctx->value = v;
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue