mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
fix(homepage): check allowlisted private service reachability (#1479)
* fix(homepage): check allowlisted private service reachability * test(css): exercise the configured PostCSS plugin chain
This commit is contained in:
1 parent
3b9a1bacf0
commit
2824b49ba9
11 files changed
+232
-10
No files matched your search
@@ -222,7 +222,7 @@ export async function safeOutboundFetch(
|
||||
return (await undiciFetch(url.toString(), {
|
||||
...options,
|
||||
dispatcher: proxy as unknown as Dispatcher,
|
||||
redirect: "error",
|
||||
redirect: options.redirect === "manual" ? "manual" : "error",
|
||||
} as never)) as unknown as Response;
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ export async function safeOutboundFetch(
|
||||
const response = await undiciFetch(url.toString(), {
|
||||
...options,
|
||||
dispatcher,
|
||||
redirect: "error",
|
||||
redirect: options.redirect === "manual" ? "manual" : "error",
|
||||
});
|
||||
// close() waits for the body, which the caller reads after we return.
|
||||
dispatcher.close().catch(() => {});
|
||||
|
||||
Reference in new issue
Block a user