$_SERVER[HTTPS] isn`t being always set; fixes #65