-
Notifications
You must be signed in to change notification settings - Fork 157
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
2.5.0 possible backward-incompatibility #367
Comments
Yeah, this was definitely a side-effect. Sorry. 😞 For what it's worth, the documentation does say that I suppose I'm willing to be convinced that we regressed an implied API here, but ultimately I'm not sure. What do you think? |
No problem, looks like we are at fault here. We shipped a patch release that constrains the h2 version, so things are fine on our end again. 😃 |
Ok, sounds like the most sensible short-term fix. 😁 |
Mea culpa - We will fix this on our side. |
😁 No need for a mea culpa: this is the kind of bug that slips through in Python really easily. I think your suggestion in #368 is likely to be the best approach to dealing with this in the longer term. |
@mhils I’m pretty sure hyper-h2 accepts a bytestring or a str, because the tests are pretty inconsistent about what they use. |
In practice I think h2 will tolerate unicode strings: this is a historical remnant from the earlier versions of h2 which did headers as unicode everywhere. So in fact the docstring is out of date and should be updated. Patches welcome! 😎 |
Hi,
we are getting a test failure in @mitmproxy with the latest h2 release (2.5.0):
Calling
h2_conn.send_headers(event.stream_id, headers)
with theseheaders
results in the following traceback:
With earlier versions of h2 this code was working just fine.
I guess
('priority_exclusive', True)
has to be astr
now, and not bool?I could not see any mentioning of that in the changlelog - if this was done by choice, or maybe it is a side effect?
ref mitmproxy/mitmproxy#1671
The text was updated successfully, but these errors were encountered: