Fix body in fetch()

This commit is contained in:
Zef Hemel
2023-01-08 22:38:54 +01:00
parent e882734489
commit 6ec6961c25
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export function monkeyPatchFetch() {
body: init.body as string,
},
);
return new Response(base64Decode(r.base64Body), {
return new Response(r.base64Body ? base64Decode(r.base64Body) : null, {
status: r.status,
headers: r.headers,
});