diff options
author | mkaay <mkaay@mkaay.de> | 2011-02-04 20:40:26 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-02-04 20:40:26 +0100 |
commit | 3c6873b027e3ce2348f7ef9236592302668be890 (patch) | |
tree | e0b271e2e958f1a1b556228de407e79736833e14 /module/network | |
parent | CNL fixes (diff) | |
download | pyload-3c6873b027e3ce2348f7ef9236592302668be890.tar.xz |
share-online.biz premium fix
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/HTTPRequest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index bcd2c696c..42b7aaf51 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -124,12 +124,15 @@ class HTTPRequest(): self.c.lastUrl = url if post: + self.c.setopt(pycurl.POST, 1) if not multipart: post = urlencode(post) 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()] self.c.setopt(pycurl.HTTPPOST, post) + else: + self.c.setopt(pycurl.POST, 0) if referer and self.lastURL: self.c.setopt(pycurl.REFERER, self.lastURL) |