summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar godofdream <soilfiction@gmail.com> 2012-08-17 01:34:02 +0200
committerGravatar godofdream <soilfiction@gmail.com> 2012-08-17 01:34:02 +0200
commit6c60e1288cd23eee6e2ade61f9830f0066eebd39 (patch)
tree90e8e85a7b82bf7a3515726a1d72e602baa575ed
parentadded background for mobile login (diff)
parentfix multipart post encoding (diff)
downloadpyload-6c60e1288cd23eee6e2ade61f9830f0066eebd39.tar.xz
Merge
-rw-r--r--module/network/HTTPRequest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 774c0e64d..290a27a40 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -167,7 +167,7 @@ class HTTPRequest():
self.c.setopt(pycurl.POSTFIELDS, post)
else:
- post = [(x, str(quote(y)) if type(y) in (str, unicode) else y ) for x, y in post.iteritems()]
+ post = [(x, y.encode('utf8') if type(y) == unicode else y ) for x, y in post.iteritems()]
self.c.setopt(pycurl.HTTPPOST, post)
else:
self.c.setopt(pycurl.POST, 0)