diff options
author | godofdream <soilfiction@gmail.com> | 2012-08-17 01:34:02 +0200 |
---|---|---|
committer | godofdream <soilfiction@gmail.com> | 2012-08-17 01:34:02 +0200 |
commit | 6c60e1288cd23eee6e2ade61f9830f0066eebd39 (patch) | |
tree | 90e8e85a7b82bf7a3515726a1d72e602baa575ed /module | |
parent | added background for mobile login (diff) | |
parent | fix multipart post encoding (diff) | |
download | pyload-6c60e1288cd23eee6e2ade61f9830f0066eebd39.tar.xz |
Merge
Diffstat (limited to 'module')
-rw-r--r-- | module/network/HTTPRequest.py | 2 |
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) |