mirror of
https://github.com/go-gost/x.git
synced 2026-10-20 08:18:33 +00:00
Response header overrides were applied before rewriteRespBody, so overriding Content-Type caused the body rewriter to see the override instead of the original upstream value, breaking the streaming-vs-non-streaming decision. Move responseHeader and ro.HTTP.Response capture after the body rewrite.