mirror of
https://github.com/go-gost/x.git
synced 2026-10-20 08:18:33 +00:00
- HTTPBodyRewriteConfig gains maxChunkSize field (YAML: maxChunkSize) - newRewriteBody replaces the unconditional skip of chunked non-streaming bodies with bounded buffering: reads up to maxChunkSize+1 bytes, rewrites if fits, passthrough if overflows - Default maxChunkSize is 1MB when no rule sets one - Compressed chunked bodies: decompress → rewrite → recompress when fits - rewriteRespBody/rewriteReqBody clear Transfer-Encoding only when Content-Length is set (fixes latent stale chunked header bug)