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