feat: fix webdav 逻辑2
This commit is contained in:
parent
ee15c14049
commit
b72d7fbeda
|
@ -114,20 +114,22 @@ async function handle(
|
||||||
duplex: "half",
|
duplex: "half",
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("[Any Proxy]", targetUrl, {
|
|
||||||
method: req.method,
|
|
||||||
params: req.body,
|
|
||||||
});
|
|
||||||
|
|
||||||
let fetchResult;
|
let fetchResult;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fetchResult = await fetch(targetUrl, fetchOptions);
|
fetchResult = await fetch(targetUrl, fetchOptions);
|
||||||
} finally {
|
} finally {
|
||||||
console.log("[Any Proxy]", targetUrl, {
|
console.log(
|
||||||
|
"[Any Proxy]",
|
||||||
|
targetUrl,
|
||||||
|
{
|
||||||
|
method: req.method,
|
||||||
|
},
|
||||||
|
{
|
||||||
status: fetchResult?.status,
|
status: fetchResult?.status,
|
||||||
statusText: fetchResult?.statusText,
|
statusText: fetchResult?.statusText,
|
||||||
});
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return fetchResult;
|
return fetchResult;
|
||||||
|
|
Loading…
Reference in New Issue