feat: fix webdav 逻辑2
This commit is contained in:
parent
ee15c14049
commit
b72d7fbeda
|
@ -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, {
|
||||
console.log(
|
||||
"[Any Proxy]",
|
||||
targetUrl,
|
||||
{
|
||||
method: req.method,
|
||||
},
|
||||
{
|
||||
status: fetchResult?.status,
|
||||
statusText: fetchResult?.statusText,
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
return fetchResult;
|
||||
|
|
Loading…
Reference in New Issue