-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
Document HSTS is still honored if allow_redirects=False #896
Comments
so it's probably happening because the domain is using HSTS: Lines 213 to 222 in 94323f9
I will leave it open as I expected that allow_redirects=False would prevent that. At least the current behaviour which is corrent could be documented :) |
Thanks, just reproduced quickly locally and it does look like we're just honoring HSTS, but no HTTP redirection is being made. I think your suggestion to document this behavior makes sense, so I updated the issue title to reflect this… |
Here's the
|
I tried to disable the redirection with latest httpx but it is always redirection the URL:
status code is also 200 and not 301 as expected.
The text was updated successfully, but these errors were encountered: