repair http/https regression