You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bun: Bun.serve does not capture request bodies #23884
Deno calls captureBodyFromWinterCGRequest and Cloudflare calls captureIncomingRequestBody. Bun calls neither, so dataCollection.httpBodies and maxRequestBodySize have no effect on Bun.serve routes.
bunserver.ts:236 also builds normalizedRequest by hand rather than using winterCGRequestToRequestData, which is what Deno and Cloudflare use. Worth checking that header scrubbing matches.
Work item. Use winterCGRequestToRequestData and captureBodyFromWinterCGRequest in bunserver.ts.
**Prior art **(related history only). No issue for Bun. The Deno equivalent shipped as #22912 (merged, maxRequestBodySize for Deno HTTP bodies) and is the model to copy.
Activity
linear-code commentedon Sep 2, 2026
JS-3510
feat(bun): Capture Bun.serve request bodies with `maxRequestBodySize` (…
github-actions commentedon Sep 23, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #24233, which was included in the 11.0.0 release.