From ca3ba9d0b20622937f88ec3e95bb954afed2f73c Mon Sep 17 00:00:00 2001 From: aacerox Date: Thu, 19 Oct 2023 18:15:31 +0200 Subject: [PATCH] refactor: Reset the protocol of the proxy server (PR #210) --- lib/NrcIoManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NrcIoManager.js b/lib/NrcIoManager.js index 1740212..6c06856 100644 --- a/lib/NrcIoManager.js +++ b/lib/NrcIoManager.js @@ -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