]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http-htx: Make 'internal.htx_blk_data' return a binary string
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jan 2020 13:38:58 +0000 (14:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
This internal sample fetch now returns a binary string (SMP_T_BIN) instead of a
character string.

src/http_htx.c

index b1940eb1ac80cceaa24faf931b6a28946717f860..6b1d11f2873ddcf0236e1afcd0e182c17fc9851d 100644 (file)
@@ -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;
 }