summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-07-16 09:45:21 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-07-16 09:45:21 +0200
commit430f568618e4a4efd826d4dae2a8ddbc3eacf40a (patch)
treef87969a39a32771682d293079f64e5e333f40551 /module/network
parent'me + public repository => nightmare: cleaning again' (diff)
downloadpyload-430f568618e4a4efd826d4dae2a8ddbc3eacf40a.tar.xz
fixed netload.in
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index ff50c34bc..30ffbcd3e 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -109,6 +109,9 @@ class Request:
#def download(url, filename, reporthook = None, data = None): #default von urlretrieve auch None?
# return self.downloader.urlretrieve(url, filename, reporthook, data)
+ def clear_cookies(self):
+ del self.cookies[:]
+
def add_proxy(self, protocol, adress):
handler = urllib2.ProxyHandler({protocol: adress})
self.opener.add_handler(handler)