diff MoinMoin/PageGraphicalEditor.py @ 4444:b757ecd984fb

Fix headers already sent exception in GUI editor code when using e.g. edit LOCKing
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 21 Nov 2008 18:28:29 +0100
parents bf72cc397f76
children 26b4a39b2f7d 37306fba2189
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sun Oct 26 16:00:01 2008 -0700
+++ b/MoinMoin/PageGraphicalEditor.py	Fri Nov 21 18:28:29 2008 +0100
@@ -51,8 +51,6 @@
         request = self.request
         form = request.form
         _ = self._
-        request.disableHttpCaching(level=2)
-        request.emit_http_headers()
 
         raw_body = ''
         msg = None
@@ -87,6 +85,10 @@
             self.send_page()
             return
 
+        # Emit 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: