Properly handles https when SSL is enabled now. Thanks to iLeoable.