Update to properly support HTTPS per @ffub PR #3