You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpx head() request behaves differently compared to requests head() implementation.
for httpxallow_redirects defaults to true, for requests it defaults to false
Activity
florimondmanca commentedon Feb 25, 2021
@bugficks Hi,
I believe this is a deliberate choice? I think there is a comment about this in the code, although I'm not sure it's for HEAD or OPTIONS.
If this is something we're missing in the Requests Compatibility guide, then sure, happy that we add it. :-)
bugficks commentedon Feb 26, 2021
@florimondmanca
so it seems. I have just tried urllib3 and they're following redirects as well. so really requests behaves bad :)
Requests Compatibility seems like a good place to add in case someone else stumbles on this.
Thanks
florimondmanca commentedon Feb 28, 2021
@bugficks Okay. :-) If you'd like to send a patch with some additional words in the compatibility guide, please feel free to.
lovelydinosaur commentedon Mar 23, 2021
Closed via #1520