mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 11:03:49 +08:00
fix: #2820 try to fix 520 error code
This commit is contained in:
@@ -26,13 +26,18 @@ async function handle(
|
||||
duplex: "half",
|
||||
};
|
||||
|
||||
console.log("[Any Proxy]", targetUrl);
|
||||
const fetchResult = await fetch(targetUrl, fetchOptions);
|
||||
|
||||
const fetchResult = fetch(targetUrl, fetchOptions);
|
||||
console.log("[Any Proxy]", targetUrl, {
|
||||
status: fetchResult.status,
|
||||
statusText: fetchResult.statusText,
|
||||
});
|
||||
|
||||
return fetchResult;
|
||||
}
|
||||
|
||||
export const POST = handle;
|
||||
export const GET = handle;
|
||||
export const OPTIONS = handle;
|
||||
|
||||
export const runtime = "edge";
|
||||
|
Reference in New Issue
Block a user