Probably fix v2 API

This commit is contained in:
Caleb Denio 2024-05-05 17:27:16 -04:00 committed by GitHub
parent 801d743557
commit fc24df2e2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {