mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
MINOR: http_fetch: Add support for empty delim in url_param
In prevision of adding a third parameter to the url_param sample-fetch function we need to make the second parameter optional. User can now pass a empty 2nd argument to keep the default delimiter.
This commit is contained in:
parent
3b7a351a97
commit
1a9a994c11
@ -1902,7 +1902,7 @@ static int smp_fetch_url_param(const struct arg *args, struct sample *smp, const
|
||||
name_len = args->data.str.data;
|
||||
}
|
||||
|
||||
if (args[1].type)
|
||||
if (args[1].type && *args[1].data.str.area)
|
||||
delim = *args[1].data.str.area;
|
||||
|
||||
if (!smp->ctx.a[0]) { // first call, find the query string
|
||||
|
Loading…
Reference in New Issue
Block a user