xref: /unit/test/python/host/wsgi.py (revision 1848:4bd548074e2c)
1973Szelenkov@nginx.comdef application(env, start_response):
2*1848Szelenkov@nginx.com    start_response(
3*1848Szelenkov@nginx.com        '200',
4*1848Szelenkov@nginx.com        [
5*1848Szelenkov@nginx.com            ('Content-Length', '0'),
6*1848Szelenkov@nginx.com            ('X-Server-Name', env.get('SERVER_NAME')),
7*1848Szelenkov@nginx.com            ('X-Http-Host', str(env.get('HTTP_HOST'))),
8*1848Szelenkov@nginx.com        ],
9*1848Szelenkov@nginx.com    )
10973Szelenkov@nginx.com    return []
11