mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
bc0943c569
commit
9c71c3fe51
7 changed files with 14 additions and 9 deletions
|
|
@ -54,6 +54,7 @@ export const mimeLookup = async (url: string) => {
|
|||
|
||||
const fetchLookup = fetch(url, {
|
||||
method: "HEAD",
|
||||
// @ts-expect-error Proxy is a Bun-specific feature
|
||||
proxy: config.http.proxy.address,
|
||||
}).then((response) => response.headers.get("content-type") || "");
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ const checkHttpProxyConfig = async (config: Config) => {
|
|||
|
||||
// Test the proxy
|
||||
const response = await fetch("https://api.ipify.org?format=json", {
|
||||
// @ts-expect-error Proxy is a Bun-specific feature
|
||||
proxy: config.http.proxy.address,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue