mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Update http.js
This commit is contained in:
@@ -89,15 +89,12 @@ export async function httpProxy(url, params = {}) {
|
||||
request = httpsRequest(constructedUrl, {
|
||||
agent: new https.Agent({
|
||||
rejectUnauthorized: false,
|
||||
autoSelectFamily: true,
|
||||
}),
|
||||
...params,
|
||||
});
|
||||
} else {
|
||||
request = httpRequest(constructedUrl, {
|
||||
agent: new http.Agent({
|
||||
autoSelectFamily: true,
|
||||
}),
|
||||
agent: new http.Agent(),
|
||||
...params,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user