Skip to content

Commit

Permalink
fix: ssr method expects rawBody instead of body (#1146)
Browse files Browse the repository at this point in the history
closes #1143
  • Loading branch information
ivoreis authored Apr 20, 2021
1 parent 7f0004f commit 59f9277
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/warm-jars-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-vercel': patch
---

fix body parsing
2 changes: 1 addition & 1 deletion packages/adapter-vercel/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async (req, res) => {
headers: req.headers,
path: pathname,
query: searchParams,
body: await getRawBody(req)
rawBody: await getRawBody(req)
});

if (rendered) {
Expand Down

1 comment on commit 59f9277

@vercel
Copy link

@vercel vercel bot commented on 59f9277 Apr 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.