Skip to content
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

Fix external rewrite with body #49487

Merged
merged 1 commit into from May 8, 2023
Merged

Fix external rewrite with body #49487

merged 1 commit into from May 8, 2023

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented May 8, 2023

This ensures we use the proper body stream when rewriting to an external resource as currently it tries to consume an already read body stream.

Fixes: #48040

@ijjk ijjk marked this pull request as ready for review May 8, 2023 22:11
@ijjk ijjk merged commit 71d3543 into vercel:canary May 8, 2023
91 checks passed
@ijjk ijjk deleted the fix/rewrite-body branch May 8, 2023 22:22
@sinclairnick
Copy link

Good stuff @ijjk. Am eagerly awaiting the canary release 👍

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

Successfully merging this pull request may close these issues.

[NEXT-1104] NextResponse.rewrite is not forwarding the request body to external hosts in dev
3 participants