Fixed urlencode in ApiRequest
This commit is contained in:
parent
83f5c9a3ce
commit
5a8f51fc26
|
@ -83,7 +83,8 @@ class ApiRequest(object):
|
|||
# TODO : get rid of god damn urllib and replace everything with
|
||||
# grequests or requests at least
|
||||
final_url = self.url.params(**kwargs).url()
|
||||
req = urllib2.Request(final_url, _post_data)
|
||||
post_data = urllib.urlencode(_post_data)
|
||||
req = urllib2.Request(final_url, post_data)
|
||||
response = urllib2.urlopen(req).read()
|
||||
return json.loads(response)
|
||||
|
||||
|
|
Loading…
Reference in New Issue