diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-13 01:18:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-13 01:18:18 +0100 |
commit | 11469d4c079986445eb516f2872836671cfc20cd (patch) | |
tree | 00964dc1d38cfbd8e685ab6dac64e0ec669f6003 /pyload/network | |
parent | Fix pyload __init__ (diff) | |
download | pyload-11469d4c079986445eb516f2872836671cfc20cd.tar.xz |
Code fixes
Diffstat (limited to 'pyload/network')
-rw-r--r-- | pyload/network/HTTPRequest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py index 2de6ff52b..2f49fbe91 100644 --- a/pyload/network/HTTPRequest.py +++ b/pyload/network/HTTPRequest.py @@ -21,7 +21,7 @@ def myquote(url): def myurlencode(data): data = dict(data) - return urlencode(dict(encode(x), encode(y) for x, y in data.iteritems())) + return urlencode(dict((encode(x), encode(y)) for x, y in data.iteritems())) bad_headers = range(400, 404) + range(405, 418) + range(500, 506) @@ -156,7 +156,7 @@ class HTTPRequest(object): self.c.setopt(pycurl.POSTFIELDS, post) else: - post = [(x, encode(y) for x, y in post.iteritems()] + post = [(x, encode(y)) for x, y in post.iteritems()] self.c.setopt(pycurl.HTTPPOST, post) else: self.c.setopt(pycurl.POST, 0) |