summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-08-17 01:00:41 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-08-17 01:00:41 +0200
commit09731ea0da4753992de70d36d3fc87b5756e5271 (patch)
treeb9f0eb844c312814d6dc572a8dba9a88eb729475 /module/network/HTTPRequest.py
parent2shared - closed #656, 4shared - closed #651 (dl with free account only) (diff)
downloadpyload-09731ea0da4753992de70d36d3fc87b5756e5271.tar.xz
fix multipart post encoding, add workaround for captcha hooks
Diffstat (limited to 'module/network/HTTPRequest.py')
-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 d4c33bbff..4747d937f 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)