mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 18:35:12 +00:00
Update new.ts
This commit is contained in:
parent
ecd558f36a
commit
d99dfa9718
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ export default async (req: Request) => {
|
||||||
const buf = await req.arrayBuffer();
|
const buf = await req.arrayBuffer();
|
||||||
console.log(decoder.decode(buf))
|
console.log(decoder.decode(buf))
|
||||||
console.log(buf)
|
console.log(buf)
|
||||||
const fileURLs = JSON.parse(decoder.decode(buf));
|
const fileURLs = decoder.decode(buf);
|
||||||
if (!Array.isArray(fileURLs) || fileURLs.length < 1) {
|
if (!Array.isArray(fileURLs) || fileURLs.length < 1) {
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({ error: "Empty file array" }),
|
JSON.stringify({ error: "Empty file array" }),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue