Closed stsvilik closed 8 years ago
I've updated the proxy code, though not using http
. As https
as the primary protocol for this particular module. Thanks for this.
using https on proxy that only accepts http (most common case) there will be an error thrown as well. I tried it in your code and I got error about an attempt to connect on wrong port and connection got refused. So using http in this case is preferred. Maybe you should make it configurable (i.e. https: true)
Looks like you forgot to require("http") and attempt to use it.