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, {
|
request = httpsRequest(constructedUrl, {
|
||||||
agent: new https.Agent({
|
agent: new https.Agent({
|
||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
autoSelectFamily: true,
|
|
||||||
}),
|
}),
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
request = httpRequest(constructedUrl, {
|
request = httpRequest(constructedUrl, {
|
||||||
agent: new http.Agent({
|
agent: new http.Agent(),
|
||||||
autoSelectFamily: true,
|
|
||||||
}),
|
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user