mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
Update http.js
This commit is contained in:
parent
58391ff33f
commit
9097da2341
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user