mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 11:39:57 +08:00
feat: fix webdav 逻辑2
This commit is contained in:
@@ -114,20 +114,22 @@ async function handle(
|
||||
duplex: "half",
|
||||
};
|
||||
|
||||
console.log("[Any Proxy]", targetUrl, {
|
||||
method: req.method,
|
||||
params: req.body,
|
||||
});
|
||||
|
||||
let fetchResult;
|
||||
|
||||
try {
|
||||
fetchResult = await fetch(targetUrl, fetchOptions);
|
||||
} finally {
|
||||
console.log("[Any Proxy]", targetUrl, {
|
||||
status: fetchResult?.status,
|
||||
statusText: fetchResult?.statusText,
|
||||
});
|
||||
console.log(
|
||||
"[Any Proxy]",
|
||||
targetUrl,
|
||||
{
|
||||
method: req.method,
|
||||
},
|
||||
{
|
||||
status: fetchResult?.status,
|
||||
statusText: fetchResult?.statusText,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
return fetchResult;
|
||||
|
Reference in New Issue
Block a user