Fix a bug where the new API wasn't honoring SSL redirects properly.