Hi
version 1.3.0
If a proxy is defined and includes contains HTTPS url. Handshake failed because it is not possible to instantiate HttpsProxyAgent.
If I replace
return _secure(serverURI) ? new HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
by
return _secure(serverURI) ? new HttpsProxyAgent.HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
No exception is raised
Image shows the current implmentation doesn't consider new HttpsProxyAgent(agentOpts) has constructor
Hi version 1.3.0 If a proxy is defined and includes contains HTTPS url. Handshake failed because it is not possible to instantiate HttpsProxyAgent.
If I replace
return _secure(serverURI) ? new HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
byreturn _secure(serverURI) ? new HttpsProxyAgent.HttpsProxyAgent(agentOpts) : new HttpcProxyAgent(agentOpts);
No exception is raisedImage shows the current implmentation doesn't consider new HttpsProxyAgent(agentOpts) has constructor