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

fix #122: httpx streaming via iter_raw raises httpx.StreamConsumed #123

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

petarmaric
Copy link
Contributor

Closes #122.

Credit where credit's due, as was the case of #91 this PR is also inspired by work done in https://github.com/Colin-b/pytest_httpx, the proposed fix corresponding to https://github.com/Colin-b/pytest_httpx/blob/b91bae4ec02a35e692700356dfe3753a20e32fc8/pytest_httpx/_httpx_mock.py#L269-L275

@petarmaric
Copy link
Contributor Author

FWIW both commits (the new regression test, fix) have already been tested individually within my fork, please see https://github.com/petarmaric/pook/actions for details.

Copy link
Collaborator

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the PR and new tests 🙏

@sarayourfriend sarayourfriend merged commit c07c496 into h2non:master Feb 14, 2024
8 checks passed
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.

httpx streaming via iter_raw raises httpx.StreamConsumed
2 participants