From 8178e4006ca9a2e2f77f70dbb7be1333a9c1d45b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 8 Jan 2020 14:38:58 +0100 Subject: [PATCH] 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. --- src/http_htx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_htx.c b/src/http_htx.c index b1940eb1a..6b1d11f28 100644 --- a/src/http_htx.c +++ b/src/http_htx.c @@ -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); } - smp->data.type = SMP_T_STR; + smp->data.type = SMP_T_BIN; smp->flags = SMP_F_CONST | SMP_F_VOLATILE | SMP_F_MAY_CHANGE; return 1; }