summaryrefslogtreecommitdiffstats
path: root/pyload/network
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 01:18:18 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 01:18:18 +0100
commit11469d4c079986445eb516f2872836671cfc20cd (patch)
tree00964dc1d38cfbd8e685ab6dac64e0ec669f6003 /pyload/network
parentFix pyload __init__ (diff)
downloadpyload-11469d4c079986445eb516f2872836671cfc20cd.tar.xz
Code fixes
Diffstat (limited to 'pyload/network')
-rw-r--r--pyload/network/HTTPRequest.py4
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)