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

Bump httpx and h11 #2048

Merged
merged 3 commits into from
Jul 17, 2023
Merged

Bump httpx and h11 #2048

merged 3 commits into from
Jul 17, 2023

Conversation

Kludex
Copy link
Sponsor Member

@Kludex Kludex commented Jul 15, 2023

httpx is limiting h11 - and h11 is a mandatory dependency of uvicorn.

I'm using the main branch of h11 because we need the type improvements I've suggested there: python-hyper/h11#161.

uvicorn/protocols/http/h11_impl.py Show resolved Hide resolved
uvicorn/protocols/http/h11_impl.py Outdated Show resolved Hide resolved
@Kludex Kludex requested a review from zanieb July 15, 2023 12:35
@Kludex Kludex changed the title ⬆️ Bump httpx and h11 Bump httpx and h11 Jul 15, 2023
Comment on lines 552 to 554
message = {"type": "http.request", "body": self.body, "more_body": self.more_body} # noqa: E501
# fmt: on
self.body = b""
Copy link

Choose a reason for hiding this comment

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

While you're here, a comment about why we're clearing self.body might be nice

@Kludex
Copy link
Sponsor Member Author

Kludex commented Jul 16, 2023

Before merging this, I need to test once again with previous h11 versions.

@Kludex
Copy link
Sponsor Member Author

Kludex commented Jul 17, 2023

Works fine. 👍

@Kludex Kludex merged commit 9be3116 into master Jul 17, 2023
12 checks passed
@Kludex Kludex deleted the bump/h11-httpx branch July 17, 2023 17:59
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.

None yet

2 participants