4 Commits

Author SHA1 Message Date
Dhruv P.
283f36e5cc test(render): add concurrency test for shared Reader headers map 2026-10-26 06:02:54 -04:00
Dhruv P.
50453fd62e fix(render): don't modify caller's headers map in Reader.Render
Reader.Render wrote Content-Length into the caller-supplied Headers map, so DataFromReader leaked a stale Content-Length into later responses that reused the map and raced when the map was shared across requests. Set Content-Length on the response headers instead.
2026-10-20 12:54:36 -04:00
thinkerou
4b68a5f12a
chore: update go.mod and remove space from copyright (#3158)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
Dmitry Kutakov
b52a1a1588 allow empty headers on DataFromReader (#2121) 2019-11-25 10:45:53 +08:00