fix http/https