Skip to content

Commit

Permalink
fix: proxy test failure under node-20
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Dec 5, 2023
1 parent 685412e commit 361a185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ProxyFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ function proxyAgent (resourceUrl, authOptions) {
logger.warn(`proxyAgent - rejectUnauthorized is set to ${rejectUnauthorized}`)
}

proxyOpts.ALPNProtocols = ['http/1.1']

if (resourceUrl.startsWith('https')) {
return new HttpsProxyAgent(proxyOpts)
} else {
Expand Down

0 comments on commit 361a185

Please sign in to comment.