summaryrefslogtreecommitdiff
path: root/tests/urlparser_data/hook/index.py
blob: 92f3d662d38544c178ce64c8057a414f4c3219df (plain)
1
2
3
4
5
6
7
8
9
import six

def application(environ, start_response):
    start_response('200 OK', [('Content-type', 'text/html')])
    body = 'index: %s' % environ['app.user']
    if six.PY3:
        body = body.encode('ascii')
    return [body]