diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-01-05 18:26:40 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-01-05 18:26:40 +0100 |
commit | 0df39b89d4625e1671603fbc7e2a94b045673378 (patch) | |
tree | e6c2304bc354cad55ebe524beb4c396b769ce4b9 /module/network/HTTPRequest.py | |
parent | Merge (diff) | |
download | pyload-0df39b89d4625e1671603fbc7e2a94b045673378.tar.xz |
fix post urlencode regression
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r-- | module/network/HTTPRequest.py | 1 |
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())) |