Mercurial > moin > 1.9
changeset 2714:eb37036e3350
temporary fix missing http headers for action=content
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Thu, 23 Aug 2007 21:40:48 +0200 |
parents | ddb2d19684d7 |
children | a17289d3a174 cd949fc57cd4 bdb12fb39b00 |
files | MoinMoin/action/__init__.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):