-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Request.clone()
does not clone body
#1381
Comments
Need to do .tee() on ReadableStream. It clones it for non-streaming bodies (same for Response) |
You can use |
Sorry - I meant Bun needs to internally call tee(). It is a bug that this doesn't work right now |
is there any progress on this issue? |
This is causing all kinds of weird (and hard-to-track down) problems for people that do |
What version of Bun is running?
0.2.1 (canary)
What platform is your computer?
Darwin 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 20:57:23 PDT 2022; root:xnu-8020.121.3~2/RELEASE_ARM64_T8110 arm64 arm
What steps can reproduce the bug?
curl -d '{}' http://localhost:3000
How often does it reproduce? Is there a required condition?
Always. Same with
.text()
.What is the expected behavior?
No response
What do you see instead?
Terminal output:
Additional information
No response
The text was updated successfully, but these errors were encountered: