Added HTTPS option

Thanks to @sgspectra for noticing bug