Fixing a minor bug relating to HTTP and HTTPS