Only accept redirect for http repositories
Fixes #954
Merge pull request #955 from AltGr/refs/heads/redirect-http-only

Redirect http only