Make fallback redirects work even on TLS connections