Skip to content

head request behaviour #1483

Closed
Closed

Description

@bugficks

httpx 0.16.1

httpx head() request behaves differently compared to requests head() implementation.
for httpx allow_redirects defaults to true, for requests it defaults to false

Activity

  1. added
    questionFurther information is requested
    requests-compatIssues related to Requests backwards compatibility
    on Feb 25, 2021
  2. florimondmanca commented on Feb 25, 2021

    @florimondmanca
    Contributor

    @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. :-)

  3. bugficks commented on Feb 26, 2021

    @bugficks
    Author

    @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

  4. florimondmanca commented on Feb 28, 2021

    @florimondmanca
    Contributor

    @bugficks Okay. :-) If you'd like to send a patch with some additional words in the compatibility guide, please feel free to.

  5. added
    docsChanges to the documentation
    and removed
    questionFurther information is requested
    on Feb 28, 2021
  6. lovelydinosaur commented on Mar 23, 2021

    @lovelydinosaur
    Member

    Closed via #1520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsChanges to the documentationrequests-compatIssues related to Requests backwards compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions