Fix requireHttps