mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 16:18:17 +00:00
Probably fix v2 API
This commit is contained in:
parent
801d743557
commit
fc24df2e2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue