mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
Improve error handling and debugging for HTTP response decompression when ShortRead errors occur during streaming responses. This addresses compatibility issues with the @ravendb npm package where decompression errors were being silently ignored, leading to incomplete responses. Changes: - Add debug logging for ShortRead errors during decompression - Better error visibility for premature stream termination - Maintain backward compatibility with existing streaming behavior - Add regression tests for RavenDB-like scenarios Fixes: Issues with @ravendb npm package reporting "Decompression error: ShortRead" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>