summaryrefslogtreecommitdiffhomepage
path: root/test/python/header_fields/wsgi.py
blob: 411445280abd6e176dea736b1af4d22829b43dec (plain) (blame)
1
2
3
4
5
6
7
8
def application(environ, start_response):

    h = (k for k, v in environ.items() if k.startswith('HTTP_'))

    start_response(
        '200', [('Content-Length', '0'), ('All-Headers', ','.join(h))]
    )
    return []