Fix http and https