|
@@ -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, {
|
|
|
|
|
- status: fetchResult?.status,
|
|
|
|
|
- statusText: fetchResult?.statusText,
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.log(
|
|
|
|
|
+ "[Any Proxy]",
|
|
|
|
|
+ targetUrl,
|
|
|
|
|
+ {
|
|
|
|
|
+ method: req.method,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ status: fetchResult?.status,
|
|
|
|
|
+ statusText: fetchResult?.statusText,
|
|
|
|
|
+ },
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return fetchResult;
|
|
return fetchResult;
|