[BUGFIX] Keep current protocol on redirects

If the current request was performed via HTTPS, a redirect should not change the protocol to HTTP.
Merge pull request #5 from mbrodala/patch-1

[BUGFIX] Keep current protocol on redirects