Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve Authorization header on HTTPS redirect (#1850) #2074

merged 2 commits into from Feb 9, 2022

Preserve Authorization header on HTTPS redirect (#1850) #2074

merged 2 commits into from Feb 9, 2022


Copy link

@waterfountain1996 waterfountain1996 commented Feb 9, 2022

Closes #1850

Added a utility function to check if a URL is a HTTPS upgrade of another URL. It will only work if the default ports (80 and 443) are used.

httpx/ Outdated Show resolved Hide resolved
Copy link

Fantastic - very neatly done.

@tomchristie tomchristie merged commit 4401d55 into encode:master Feb 9, 2022
5 checks passed
@tomchristie tomchristie mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Allow Authorization header to be preserved on http->https redirect cases.
2 participants