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(js-runtime): set content-length header for POST/PUT with null body #928

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Jun 5, 2023

About

In fetch(), when the body is null and the method is POST or PUT, the content-length header should be set to 0:

Screenshot 2023-06-05 at 07 21 36

Spec: https://fetch.spec.whatwg.org/#http-network-or-cache-fetch

@changeset-bot
Copy link

changeset-bot bot commented Jun 5, 2023

🦋 Changeset detected

Latest commit: 21542df

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@lagon/js-runtime Patch
@lagon/cli Patch
@lagon/serverless Patch
@lagon/runtime Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard ❌ Failed (Inspect) Jun 5, 2023 5:22am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 5:22am
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 5:22am
www ✅ Ready (Inspect) Visit Preview Jun 5, 2023 5:22am

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

Successfully merging this pull request may close these issues.

1 participant