Corpus location
- Position: 4128
- File:
js/web/fetch/fetch-compress.test.ts - First observed failure:
string body: Expected 1047 to be less than 1041
Required parity
- Compress eligible string, typed-array, Blob, and file bodies with gzip, deflate, Brotli, and Zstandard.
- Support
compress: trueas gzip and{ encoding, level }with valid per-codec levels. - Leave bodies uncompressed for
compress: false, an explicitContent-Encoding, streams, and empty bodies. - Set
Content-Encodingand exact compressed-byteContent-Lengthheaders. - Handle bodies above the shared-buffer threshold, including incompressible spill paths and zlib-wrapped streaming deflate.
- Recompress the original body correctly for method-preserving redirects.
- Reject unsupported encodings and invalid levels before transport work using structured errors with stable code, operation, codec/level context, cause, and composed stack.
Completion gate
- Make the complete copied Bun corpus file pass.
- Add a focused regression and pin it in the permanent HTTP/web mini-suite.
- Keep the full copied-corpus accounting and project build green.
Parent tracker: #66