mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
MINOR: http-htx: Make 'internal.htx_blk_data' return a binary string
This internal sample fetch now returns a binary string (SMP_T_BIN) instead of a character string.
This commit is contained in:
parent
c5db14c5d4
commit
8178e4006c
@ -1261,7 +1261,7 @@ smp_fetch_htx_blk_data(const struct arg *arg_p, struct sample *smp, const char *
|
|||||||
|
|
||||||
chunk_initlen(&smp->data.u.str, val.ptr, val.len, val.len);
|
chunk_initlen(&smp->data.u.str, val.ptr, val.len, val.len);
|
||||||
}
|
}
|
||||||
smp->data.type = SMP_T_STR;
|
smp->data.type = SMP_T_BIN;
|
||||||
smp->flags = SMP_F_CONST | SMP_F_VOLATILE | SMP_F_MAY_CHANGE;
|
smp->flags = SMP_F_CONST | SMP_F_VOLATILE | SMP_F_MAY_CHANGE;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user