Skip to content

Commit

Permalink
fix(vercel-edge): fix body handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 16, 2023
1 parent 4c825b6 commit c75c2f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/entries/vercel-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { nitroApp } from "#internal/nitro/app";

export default async function handleEvent(request, event) {
const url = new URL(request.url);

let body;
if (requestHasBody(request)) {
body = await useRequestBody(request);
if (request.body) {
body = await request.arrayBuffer();
}

const r = await nitroApp.localCall({
Expand Down

0 comments on commit c75c2f1

Please sign in to comment.