mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
Adds a configurable maximum HTTP header count limit, similar to --max-http-header-size. This allows servers to accept requests with more than the default 100 headers. Features: - CLI flag: --max-http-header-count <INT> (default: 100) - Node.js API: http.maxHeadersCount getter/setter - Dynamic header allocation when limit > 100 (fast path for default) - Returns HTTP 431 when header count exceeds limit Fixes #6982 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>