From f1bf8dd1480abefc29fefa785ce87e1c64c4a25f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 3 Apr 2026 10:26:37 +0200 Subject: [PATCH] MINOR: haterm: Add an request option to disable splicing The parameter "?S=0" can now be added on the request URI to disable the splicing for the response. "?S=1" will only fallback on the haterm settings. --- src/haterm.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/haterm.c b/src/haterm.c index 77a137e6c..a3b50aec9 100644 --- a/src/haterm.c +++ b/src/haterm.c @@ -33,6 +33,7 @@ DECLARE_TYPED_POOL(pool_head_hstream, "hstream", struct hstream); #define HS_ST_OPT_REQ_AFTER_RES 0x0100 /* drain the request payload after the response (?A=1) */ #define HS_ST_OPT_RANDOM_RES 0x0200 /* random response (?R=1) */ #define HS_ST_OPT_NO_CACHE 0x0400 /* non-cacheable resposne (?c=0) */ +#define HS_ST_OPT_NO_SPLICING 0x0800 /* no splicing (?S=1) */ const char *HTTP_HELP = "HAProxy's dummy HTTP server for benchmarks - version " HAPROXY_VERSION ".\n" @@ -52,7 +53,7 @@ const char *HTTP_HELP = " E.g. /?K=1\n" " - /?t=