fix issue with auto http: -> https: redirection behind firewall