Check if body

This commit is contained in:
WardPearce
2026-03-14 12:25:24 +13:00
parent 75d7aaf6a9
commit 4ccc0994be
@@ -133,8 +133,8 @@ async function proxyRequest(
await sodium.ready;
body = Uint8Array.from(sodium.from_base64(await request.text()));
} else {
if (request.method !== 'GET' && request.method !== 'HEAD') body = await request.blob();
} else if (body && request.method !== 'GET' && request.method !== 'HEAD') {
body = await request.blob();
}
let response: Response | undefined;