Skip to content

Commit

Permalink
fix: ssr method expects rawBody instead of body
Browse files Browse the repository at this point in the history
closes #1143
  • Loading branch information
ivoreis committed Apr 20, 2021
1 parent 7f0004f commit a78f4ca
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

0 comments on commit a78f4ca

Please sign in to comment.