Mercurial > moin > 1.9
changeset 2756:bdb12fb39b00
merged main
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Thu, 23 Aug 2007 21:41:37 +0200 |
parents | 7c8e3ce74202 (current diff) eb37036e3350 (diff) |
children | e3b0355215a2 |
files | |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/__init__.py Thu Aug 23 21:15:32 2007 +0200 +++ b/MoinMoin/action/__init__.py Thu Aug 23 21:41:37 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):