I think I'll just let it fail by getting an http resource while only allowing https, that would make the code nice and simple. Coming up.