Skip to content

Fix compatibility with httpx 0.28.0#1

Closed
francoisfreitag wants to merge 1 commit intondhansen:masterfrom
francoisfreitag:warn
Closed

Fix compatibility with httpx 0.28.0#1
francoisfreitag wants to merge 1 commit intondhansen:masterfrom
francoisfreitag:warn

Conversation

@francoisfreitag
Copy link
Copy Markdown

I included the remarks from the review.

Prior to httpx version 0.28.0, request methods were implicitly converted
from bytes to strings. In version 0.28.0 that is no longer the case, the
method is expected to be an str.

A DeprecationWarning has been added so that codebases can adapt during
the next release cycle.

Co-authored-by: François Freitag <mail@franek.fr>
@francoisfreitag
Copy link
Copy Markdown
Author

The bytes come from httpcore, and we’re only getting bytes because we’re hooking the mock after httpcore issued the request. So there’s nothing users can do about this warning.

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.

2 participants