From 2617e0e5876e0491eef32c5af80f9d6427cc3c6e Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 8 Jan 2023 21:08:17 +0100 Subject: [PATCH] Make body work with fetch() --- plugos/syscalls/fetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugos/syscalls/fetch.ts b/plugos/syscalls/fetch.ts index 085c2b5e..4e46ddc3 100644 --- a/plugos/syscalls/fetch.ts +++ b/plugos/syscalls/fetch.ts @@ -14,6 +14,7 @@ export async function sandboxFetch( req && { method: req.method, headers: req.headers, + body: req.body, }, ); const body = await (await result.blob()).arrayBuffer();