Add support for HTTPS

And node's https module does not support `protocol` option