@arrbee @phkelley bumping up this old PR. Why is this check performed? Security issues? This is not breaking on GitHub.com when we redirect http clones to https (cc @scottjg)

I get the feeling that we simply cannot handle protocol changes atm, and that we're going to need to refactor this code a little bit to make it work. Is this correct? @carlosmn can you comment?