Update http.js

This commit is contained in:
shamoon 2025-02-27 16:50:25 -08:00
parent 58391ff33f
commit 9097da2341
No known key found for this signature in database

View File

@ -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,
});
}