-
-
Notifications
You must be signed in to change notification settings - Fork 436
Open
Description
Hi!
I use hackney_url:qa to urlencode, when the value is a list, it will be wrong.
6> hackney_url:qs([{<<"deviceTokenList">>, [<<"08670650250202362000003019000001">>,<<"sdfsdf">>]}]).
<<"deviceTokenList=08670650250202362000003019000001sdfsdf">>
In Python:
In [4]: urllib.urlencode({'deviceTokenList': ['08670650250202362000003019000001', 'sdfsdf']})
Out[4]: 'deviceTokenList=%5B%2708670650250202362000003019000001%27%2C+%27sdfsdf%27%5D'