# HG changeset patch # User Thomas Waldmann # Date 1187898048 -7200 # Node ID eb37036e3350b0e300b808a0a17b2408c4881c25 # Parent ddb2d19684d7e5d63405fe1be06b7ef3c69e4520 temporary fix missing http headers for action=content diff -r ddb2d19684d7 -r eb37036e3350 MoinMoin/action/__init__.py --- a/MoinMoin/action/__init__.py Thu Aug 23 10:29:42 2007 +0200 +++ b/MoinMoin/action/__init__.py Thu Aug 23 21:40:48 2007 +0200 @@ -26,7 +26,7 @@ """ from MoinMoin.util import pysupport -from MoinMoin import wikiutil +from MoinMoin import config, wikiutil from MoinMoin.Page import Page # create a list of extension actions from the package directory @@ -250,6 +250,10 @@ def do_content(pagename, request): """ same as do_show, but we only show the content """ + # XXX temporary fix to make it work until Page.send_page gets refactored + request.setHttpHeader("Content-Type: text/html; charset=%s" % config.charset) + request.setHttpHeader('Status: 200 OK') + request.emit_http_headers() do_show(pagename, request, count_hit=0, content_only=1) def do_print(pagename, request):