From 4f1f935c46875748a078aed50d7e191a0c7a5ec4 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 15 Oct 2010 17:48:33 +0200 Subject: fixes --- module/network/Request.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'module/network/Request.py') 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() -- cgit v1.2.3