You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tushar5526 I'm looking through some old issues and pull requests. It seems the maintainers do not do much triage. I'm willing to look work on this issue. If we want to wait for a maintainer to review, let's get in touch directly with that person
@tushar5526@panzer Thanks for the patience, it would be great to have support for bytes as values in HTTPHeaderDict. I'm not sure how exactly that would work internally, maybe you have some ideas :)
Subject
Passing bytes as the value in
HttpHeaderDict
is not handled completely.Environment
Describe your environment.
At least, paste here the output of:
Steps to Reproduce
Expected Behavior
You can access bytes objects passed in headers.
Actual Behavior
Errors out with this
Bytes are not handled - https://github.com/urllib3/urllib3/blob/main/src/urllib3/_collections.py#L257 , https://github.com/urllib3/urllib3/blob/main/src/urllib3/_collections.py#L426
Using bytes as keys has some level of handling - https://github.com/urllib3/urllib3/blob/main/src/urllib3/_collections.py#L251
Found this issue while going through #3047
The text was updated successfully, but these errors were encountered: