summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-05 18:26:40 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-05 18:26:40 +0100
commit0df39b89d4625e1671603fbc7e2a94b045673378 (patch)
treee6c2304bc354cad55ebe524beb4c396b769ce4b9 /module/network/HTTPRequest.py
parentMerge (diff)
downloadpyload-0df39b89d4625e1671603fbc7e2a94b045673378.tar.xz
fix post urlencode regression
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r--module/network/HTTPRequest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 40f18f2a5..d4c33bbff 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -31,6 +31,7 @@ def myquote(url):
return quote(url.encode('utf_8') if isinstance(url, unicode) else url, safe="%/:=&?~#+!$,;'@()*[]")
def myurlencode(data):
+ data = dict(data)
return urlencode(dict((x.encode('utf_8') if isinstance(x, unicode) else x, \
y.encode('utf_8') if isinstance(y, unicode) else y ) for x, y in data.iteritems()))