summaryrefslogtreecommitdiffstats
path: root/module/web/middlewares.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-09 20:20:08 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-09 20:20:08 +0200
commitdef4fb88277aa00f41104b5bfac8239ba4341373 (patch)
tree6fd30426aa91b7e28e420c7ab6d8374b0e14a7a6 /module/web/middlewares.py
parentbottle.py update (diff)
downloadpyload-def4fb88277aa00f41104b5bfac8239ba4341373.tar.xz
new supported webserver (lightweight)
Diffstat (limited to 'module/web/middlewares.py')
-rw-r--r--module/web/middlewares.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/web/middlewares.py b/module/web/middlewares.py
index b71138e69..a4b962988 100644
--- a/module/web/middlewares.py
+++ b/module/web/middlewares.py
@@ -123,7 +123,11 @@ class GzipResponse(object):
output.close()
finally:
if hasattr(app_iter, 'close'):
- app_iter.close()
+ try:
+ app_iter.close()
+ except :
+ pass
+
content_length = self.buffer.tell()
update_header(self.headers, "Content-Length" , str(content_length))
self.start_response(self.status, self.headers) \ No newline at end of file