When different schemes are availaible (http/https), it would be nice to select which one to use. I will look into it, and maybe propose a PR.