view MoinMoin/server/wsgi.py @ 15:5a2a8201bb6f

make moin friendlier to proxies, thanks to ASF imported from: moin--main--1.5--patch-16
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 23 Sep 2005 20:02:07 +0000
parents 77665d8e2254
children 80d0ad85a2d8
line wrap: on
line source
"""
    MoinMoin - WSGI application

    @copyright: 2005 by Anakim Border <akborder@gmail.com>
    @license: GNU GPL, see COPYING for details.
"""

from MoinMoin.request import RequestWSGI

def moinmoinApp(environ, start_response):
    request = RequestWSGI(environ)
    request.run()
    start_response(request.status, request.headers)
    return [request.output()]