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: preserve body in request copy #47

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

pzerelles
Copy link
Contributor

This PR will only create a new Request object if the ORIGIN is different from the on in headers.
When creating a new Request object is necessary, the body of the original request is preserved.

With this fix, many form submission problems should be resolved.

fixes #17, fixes #43

@gornostay25 gornostay25 merged commit a051191 into gornostay25:master Feb 20, 2024
@gornostay25 gornostay25 mentioned this pull request Feb 20, 2024
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

Successfully merging this pull request may close these issues.

Body is empty when using +server.ts how to handle formdata with endpoints
2 participants