diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-08-17 01:02:44 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-08-17 01:02:44 +0200 |
commit | c64d929c6339226e6c29e3bfba195fbc5610865b (patch) | |
tree | 11bdec422e4250f161940767282ba1ee85974c2a | |
parent | Merge (diff) | |
download | pyload-c64d929c6339226e6c29e3bfba195fbc5610865b.tar.xz |
fix multipart post encoding
-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) |