changeset 2748:d28a4f5d0003

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 21 Aug 2007 23:34:20 +0200
parents bb686d95f113 (current diff) 2d93b9a28ea3 (diff)
children ef2268e5f605
files MoinMoin/PageEditor.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Tue Aug 21 23:11:26 2007 +0200
+++ b/MoinMoin/PageEditor.py	Tue Aug 21 23:34:20 2007 +0200
@@ -155,8 +155,6 @@
         request = self.request
         form = request.form
         _ = self._
-        request.disableHttpCaching(level=2)
-        request.emit_http_headers()
 
         raw_body = ''
         msg = None
@@ -199,6 +197,10 @@
             self.send_page(msg=msg)
             return
 
+        # Emmit http_headers after checks (send_page)
+        request.disableHttpCaching(level=2)
+        request.emit_http_headers()
+
         # check if we want to load a draft
         use_draft = None
         if 'button_load_draft' in form: