mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Update http.js
This commit is contained in:
parent
58391ff33f
commit
9097da2341
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue