mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-05 16:02:12 +00:00
fromFHTTPResponse returned Header and Trailer maps that aliased the original fhttp.Response maps. Downstream consumers (e.g. console adapter calling Header.Del) mutated the shared maps, corrupting the fhttp response state. Clone all shared data structures (Header, Trailer, TransferEncoding) to isolate the two responses.