Skip to content

Bun's req.clone() does not clone bodies properly yet (warning) #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
seveibar opened this issue Mar 14, 2024 · 1 comment
Open

Bun's req.clone() does not clone bodies properly yet (warning) #151

seveibar opened this issue Mar 14, 2024 · 1 comment

Comments

@seveibar
Copy link
Contributor

Edgespec doesn't work with Bun.serve because of this bug. Took a while to debug, so I wanted to share the learning. oven-sh/bun#8668

You can easily get a proper request shim with:

import { Request as EdgeRuntimeRequest } from "@edge-runtime/primitives"

image

@codetheweb
Copy link
Contributor

huh, interesting

happy to accept a PR for a bun adapter if you think it's applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants