We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MultiDict.copy()
istr
Here's a small test case:
>>> import multidict >>> m=multidict.CIMultiDict({multidict.istr('Foo'): 'bar'}) >>> m.copy() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "multidict/_multidict.pyx", line 325, in multidict._multidict.MultiDict.copy (multidict/_multidict.c:6830) File "multidict/_multidict.pyx", line 251, in multidict._multidict.MultiDict.__init__ (multidict/_multidict.c:5495) File "multidict/_multidict.pyx", line 289, in multidict._multidict.MultiDict._extend (multidict/_multidict.c:6115) TypeError: Expected str, got istr
MultiDict._extend expects every key to be a str. aiohttp.hdrscreates istr objects, so request.headers.copy() doesn't work.
MultiDict._extend
aiohttp.hdrs
request.headers.copy()
The text was updated successfully, but these errors were encountered:
Good catch! I'll fix it in a few hours.
Sorry, something went wrong.
Workaround for aio-libs/multidict#11
e2cea6c
Fix CIMultiDict constructor for case of accepting istr #11
c79c3a3
Fixed by c79c3a3 and released as `multidict==2.1.1"
No branches or pull requests
Here's a small test case:
MultiDict._extend
expects every key to be a str.aiohttp.hdrs
createsistr
objects, sorequest.headers.copy()
doesn't work.The text was updated successfully, but these errors were encountered: