Fixed a couple minor bugs with http/https