From fc24df2e2b070498565d2da1b8be54529495fad4 Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Sun, 5 May 2024 17:27:16 -0400 Subject: [PATCH] Probably fix v2 API --- api/v2/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/new.ts b/api/v2/new.ts index 0432770..1c27611 100644 --- a/api/v2/new.ts +++ b/api/v2/new.ts @@ -6,7 +6,7 @@ import { ensurePost, parseBody } from "./utils.ts"; export default async (req: Request) => { if (!ensurePost(req)) return null; - const body = await req.arrayBuffer(); + const body = new TextDecoder().decode(await req.arrayBuffer()); const fileURLs = JSON.parse(body); if (!Array.isArray(fileURLs) || fileURLs.length < 1) {