mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix websocket is broken because of middleware
This commit is contained in:
@@ -14,6 +14,7 @@ export async function handler(req: Request, ctx: MiddlewareHandlerContext) {
|
||||
}
|
||||
return new Response(null, { status: 204, headers });
|
||||
} else {
|
||||
if (res.status === 101) return res;
|
||||
const headers = new Headers(res.headers);
|
||||
const origin = req.headers.get("origin");
|
||||
if (origin) {
|
||||
|
||||
Reference in New Issue
Block a user