Skip to content

Conversation

@po-nuvai
Copy link

When using digest authentication with the --all flag, the intermediate 401 Unauthorized response was not being displayed. This is because the requests library stores the 401 response in response.history, but HTTPie wasn't yielding those historical responses.

This fix checks response.history when --all is used and yields any historical responses (such as the 401 from digest auth challenges).

Fixes #1603

When using digest authentication with the --all flag, the intermediate
401 Unauthorized response was not being displayed. This is because the
requests library stores the 401 response in response.history, but HTTPie
wasn't yielding those historical responses.

This fix checks response.history when --all is used and yields any
historical responses (such as the 401 from digest auth challenges).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermediate Response headers not printed for Digest Auth

1 participant