fix
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import brotliPromise from "brotli-wasm"; // Import the default export
|
||||
import { gzipSync } from "bun";
|
||||
import { simpleHash } from "utils/cache";
|
||||
import { g } from "utils/global";
|
||||
const brotli = await brotliPromise;
|
||||
|
||||
@@ -24,8 +24,6 @@ export const serveAPI = async (url: URL, req: Request) => {
|
||||
if (!req.headers.get("content-type")?.startsWith("multipart/form-data")) {
|
||||
try {
|
||||
const json = await req.json();
|
||||
|
||||
|
||||
if (typeof json === "object") {
|
||||
if (Array.isArray(json)) {
|
||||
args = json;
|
||||
@@ -47,8 +45,9 @@ export const serveAPI = async (url: URL, req: Request) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (e) { }
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user