-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Exception with MultiDict in POST request #114
Comments
What's more, GET just ignores any subsequent parameters. import asyncio
import aiohttp
from aiohttp.multidict import MultiDict
loop = asyncio.get_event_loop()
d = MultiDict([('a', 'b'), ('a', 'c')])
resp = loop.run_until_complete(aiohttp.request('GET', "http://httpbin.org/get", params=d))
json = loop.run_until_complete(resp.json())
print(d, json) |
did you try to use just list() instead of MultiDict ? |
fixed in master |
Tanks for the fix. When looking for a way to send duplicate params, I found MultiDict and blindly assumed that must be the way. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to POST mutliple values with the same name with aiohttp, but get the following exception:
Example code:
The text was updated successfully, but these errors were encountered: