Skip to content

Commit

Permalink
fix(azure): raw body no longer returns parsed json (#589)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
tobiasdiez and danielroe authored Oct 17, 2022
1 parent 6d4b416 commit 5c2c313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/runtime/entries/azure-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export async function handle (context, req) {
url,
headers: req.headers,
method: req.method,
body: req.body
// https://github.com/Azure/azure-functions-host/issues/293
body: req.rawBody
})

context.res = {
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/entries/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export async function handle (context, req) {
url,
headers: req.headers,
method: req.method,
body: req.body
// https://github.com/Azure/azure-functions-host/issues/293
body: req.rawBody
})

context.res = {
Expand Down

0 comments on commit 5c2c313

Please sign in to comment.