Skip to content

Commit

Permalink
Update http.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Feb 28, 2025
1 parent 58391ff commit 9097da2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/proxy/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down

0 comments on commit 9097da2

Please sign in to comment.