Support https

See #1.