diff options
Diffstat (limited to 'tests/urlparser_data/hook/index.py')
-rw-r--r-- | tests/urlparser_data/hook/index.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/urlparser_data/hook/index.py b/tests/urlparser_data/hook/index.py new file mode 100644 index 0000000..92f3d66 --- /dev/null +++ b/tests/urlparser_data/hook/index.py @@ -0,0 +1,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] + |