From: Christopher Faulet Date: Fri, 3 Apr 2026 08:26:37 +0000 (+0200) Subject: MINOR: haterm: Add an request option to disable splicing X-Git-Tag: v3.4-dev8~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1bf8dd1480abefc29fefa785ce87e1c64c4a25f;p=thirdparty%2Fhaproxy.git 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. --- 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=