summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-15 17:48:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-15 17:48:33 +0200
commit4f1f935c46875748a078aed50d7e191a0c7a5ec4 (patch)
tree31faade248dbf850e8bc81febeb18ea77c6aaf74 /module/network
parentmore fixes (diff)
downloadpyload-4f1f935c46875748a078aed50d7e191a0c7a5ec4.tar.xz
fixes
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index c76590afc..bc62a0cc9 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -334,14 +334,17 @@ class Request:
self.header += string
def write_rep(self, buf):
- if self.rep.tell() > 180000 or self.abort:
+ if self.rep.tell() > 200000 or self.abort:
+ rep = self.get_rep()
if self.abort: raise Abort
- print self.rep.getvalue()
+ f = open("response.dump", "wb")
+ f.write(rep)
+ f.close()
raise Exception("Loaded Url exceeded limit")
self.rep.write(buf)
- def get_rep(self):
+ def get_rep(self):
value = self.rep.getvalue()
self.rep.close()
self.rep = StringIO()