http/https fix