summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-25 12:11:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-25 12:11:09 +0200
commit8e9f093a9d74da03eca85f6ff2ee7239e8133cce (patch)
treebd71d25a43df275e2e1f6c0e70cf20cc22f3a70a /module/network
parentslightly improved process call (diff)
downloadpyload-8e9f093a9d74da03eca85f6ff2ee7239e8133cce.tar.xz
more cleanup
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index 45fd3f66b..75a490b9f 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -77,7 +77,7 @@ class Request:
def init_curl(self):
self.rep = StringIO()
self.header = ""
-
+
self.pycurl = pycurl.Curl()
self.pycurl.setopt(pycurl.FOLLOWLOCATION, 1)
self.pycurl.setopt(pycurl.MAXREDIRS, 5)
@@ -90,6 +90,7 @@ class Request:
self.pycurl.setopt(pycurl.HEADERFUNCTION, self.write_header)
self.pycurl.setopt(pycurl.BUFFERSIZE, self.bufferSize)
self.pycurl.setopt(pycurl.SSL_VERIFYPEER, 0)
+
if self.debug:
self.pycurl.setopt(pycurl.VERBOSE, 1)
if self.interface and self.interface.lower() != "none":