mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
Implements automatic Connection header behavior to match Node.js: - Automatically adds "Connection: keep-alive" when no Connection header is set - Automatically adds "Connection: close" when connection should be closed - Respects user-provided Connection headers - Respects explicitly removed Connection headers (via removeHeader) Fixes Node.js HTTP compatibility by ensuring proper HTTP/1.1 keep-alive behavior. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>