fix http and htpps