simple-proxy-agent
simple-proxy-agent copied to clipboard
Fix protocol mismatch error; implement basic auth for http proxy
Under some circumstances the options.port could be '80' string which caused issues with proto mismatch, when the script incorrectly tries to connect to https host via 80 port instead of 443. The line #45 comparison is made less strict to mitigate this.
I also needed basic auth for http proxies. Hopefully this may be useful for someone else. Cheers!