We hit this when attempting to use puppeteer which utilizes this library to gather the proxy.
The 'shouldProxy' function looks to take into account that both ports match up to set the proxy which results in non proxied traffic and a failure http status code 400 to occur. Proxies expect a 'CONNECT' for the https traffic.
An environment may have a 'plain' http://proxy.example:80 only and need to send a https://example.com url through.
We hit this when attempting to use puppeteer which utilizes this library to gather the proxy.
The 'shouldProxy' function looks to take into account that both ports match up to set the proxy which results in non proxied traffic and a failure http status code 400 to occur. Proxies expect a 'CONNECT' for the https traffic.