fix bug where no https isn't supported