summaryrefslogtreecommitdiffstats
path: root/module/network/Browser.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/Browser.py
parentfix Depositfiles, UlozTo (diff)
downloadpyload-ae55e11c1f0f5b1e9378b06cccc78f0e7bae5b97.tar.xz
rehost,to timeout fix
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r--module/network/Browser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py
index 23cf7666b..d68a23687 100644
--- a/module/network/Browser.py
+++ b/module/network/Browser.py
@@ -112,6 +112,13 @@ class Browser(object):
if "auth" in self.options: del self.options["auth"]
self.renewHTTPRequest()
+ def setOption(self, name, value):
+ """Adds an option to the request, see HTTPRequest for existing ones"""
+ self.options[name] = value
+
+ def deleteOption(self, name):
+ if name in self.options: del self.options[name]
+
def clearHeaders(self):
self.http.clearHeaders()