web/application.py
branchstable
changeset 8753 b61a7c6352f2
parent 8711 64a400eea6dd
child 8997 525915f8bc1c
--- a/web/application.py	Mon Sep 17 14:39:29 2012 +0200
+++ b/web/application.py	Fri Feb 22 12:20:59 2013 +0100
@@ -485,6 +485,7 @@
             raise
         ### Last defense line
         except BaseException as ex:
+            req.status_out = httplib.INTERNAL_SERVER_ERROR
             result = self.error_handler(req, ex, tb=True)
         finally:
             if req.cnx and not commited:
@@ -538,6 +539,7 @@
             self.exception(repr(ex))
         req.set_header('Cache-Control', 'no-cache')
         req.remove_header('Etag')
+        req.remove_header('Content-disposition')
         req.reset_message()
         req.reset_headers()
         if req.ajax_request: