Skip to content

Commit

Permalink
refactor: Reset the protocol of the proxy server (PR #210)
Browse files Browse the repository at this point in the history
  • Loading branch information
aacerox committed Oct 19, 2023
1 parent a743ccc commit ca3ba9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/NrcIoManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default class NrcIoManager extends events.EventEmitter {
result.proxy = {
host: config.proxy.host,
port: config.proxy.port,
protocol: config.proxy.protocol,
// if proxy tunnel use 'CONNECT' method, else get method from request
method: config.useProxyTunnel ? 'CONNECT' : connectMethod,
// if proxy tunnel set proxy path else get request path
Expand Down

0 comments on commit ca3ba9d

Please sign in to comment.