simple-proxy-agent icon indicating copy to clipboard operation
simple-proxy-agent copied to clipboard

Fix protocol mismatch error; implement basic auth for http proxy

Open restyler opened this issue 3 years ago • 0 comments

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!

restyler avatar Sep 09 '20 14:09 restyler