summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r--module/network/HTTPRequest.py3
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)