mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 05:54:39 +00:00
BUG/MINOR: wurfl: Fix HTX message prefetch
An additional argument has been added to smp_prefetch_htx() function in the
commit 778f5ed47
("MEDIUM: checks/http-fetch: Support htx prefetch from a check
for HTTP samples"). But forgot to update call in wurfl module.
No need to backport.
This commit is contained in:
parent
d1185cc496
commit
b565e72dfb
@ -436,7 +436,7 @@ static int ha_wurfl_get_all(const struct arg *args, struct sample *smp, const ch
|
||||
ha_wurfl_log("WURFL: starting ha_wurfl_get_all\n");
|
||||
|
||||
chn = (smp->strm ? &smp->strm->req : NULL);
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
if (!htx)
|
||||
return 0;
|
||||
|
||||
@ -522,7 +522,7 @@ static int ha_wurfl_get(const struct arg *args, struct sample *smp, const char *
|
||||
ha_wurfl_log("WURFL: starting ha_wurfl_get\n");
|
||||
|
||||
chn = (smp->strm ? &smp->strm->req : NULL);
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
if (!htx)
|
||||
return 0;
|
||||
|
||||
@ -739,7 +739,7 @@ static const char *ha_wurfl_retrieve_header(const char *header_name, const void
|
||||
// We could skip this chek since ha_wurfl_retrieve_header is called from inside
|
||||
// ha_wurfl_get()/ha_wurfl_get_all() that already perform the same check
|
||||
// We choose to keep it in case ha_wurfl_retrieve_header will be called directly
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
if (!htx) {
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user