From: Christopher Faulet Date: Wed, 8 Jan 2020 13:38:58 +0000 (+0100) Subject: MINOR: http-htx: Make 'internal.htx_blk_data' return a binary string X-Git-Tag: v2.2-dev1~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8178e4006ca9a2e2f77f70dbb7be1333a9c1d45b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/http_htx.c b/src/http_htx.c index b1940eb1ac..6b1d11f287 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; }