Fixed urlencode in ApiRequest

This commit is contained in:
Rudi Grinberg 2012-10-30 16:08:52 -04:00
parent 83f5c9a3ce
commit 5a8f51fc26
1 changed files with 2 additions and 1 deletions

View File

@ -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)