Bugfix for Safari/Firefox hung on 302 when we have a HTTPS connection