summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-13 17:05:28 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-13 17:05:28 +0100
commitae55e11c1f0f5b1e9378b06cccc78f0e7bae5b97 (patch)
tree5e109cd77d8a351f97774f6d7f3938f3f48708b6 /module/network/HTTPRequest.py
parentfix Depositfiles, UlozTo (diff)
downloadpyload-ae55e11c1f0f5b1e9378b06cccc78f0e7bae5b97.tar.xz
rehost,to timeout fix
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r--module/network/HTTPRequest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 6672a58e6..bd8cdd72e 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -118,6 +118,10 @@ class HTTPRequest():
if "auth" in options:
self.c.setopt(pycurl.USERPWD, str(options["auth"]))
+ if "timeout" in options:
+ self.c.setopt(pycurl.LOW_SPEED_TIME, options["timeout"])
+
+
def addCookies(self):
""" put cookies from curl handle to cj """
if self.cj: