Skip to content

Commit

Permalink
fix: proxies work correctly in Node v18.17 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin authored Jul 25, 2023
1 parent 024da2c commit a40b4e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resolve-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const connect = async (proxyUrl: string, options: tls.ConnectionOptions, callbac
method: 'CONNECT',
headers,
path: host,
pathname: host,
rejectUnauthorized: false,
});
} as any);

request.end();

Expand Down

0 comments on commit a40b4e7

Please sign in to comment.