xref: /unit/test/python/environment/wsgi.py (revision 679:a6ee16204cc9)
1import os
2
3def application(env, start_response):
4    body = ''
5    vars = env.get('HTTP_X_VARIABLES').split(',')
6
7    for var in vars:
8        if var in os.environ:
9            body += str(os.environ[var]) + ','
10
11    body = body.encode()
12    start_response('200', [('Content-Length', str(len(body)))])
13    return body
14