summaryrefslogtreecommitdiff
path: root/tests/urlparser_data/not_found/user/list.py
blob: fd7482f77057e83e6ddb2d7c1d370786a18875be (plain)
1
2
3
4
5
6
7
8
import six

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