]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-fetch: Ignore empty argument string for query()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2024 08:09:26 +0000 (09:09 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Dec 2024 09:00:01 +0000 (10:00 +0100)
commite1525e7b8fa15c59c1c6fc4063b5218d134b7afb
tree6c875837ac2bfa48e6dbcded20fc2dc58bf7214b
parent9c91b3013955ca061fb1388ad4c6f816b08cb894
BUG/MINOR: http-fetch: Ignore empty argument string for query()

query() sample fetch function takes an optional argument string. During
configuration parsing, empty string must be ignored. It is especially
important when the sample is used with empty parenthesis. The argument is
optional and it is a list of options to configure the behavior of the sample
fetch. So it is logical to ignore empty strings.

This patch should fix the issue #2815. It must be backported to 3.1.
src/http_fetch.c