summaryrefslogtreecommitdiffhomepage
path: root/test/python/upstreams/1/wsgi.py
blob: 5077bdb1534d2b45f5f8c88a7d6321b5fcc0e1e3 (plain) (blame)
1
2
3
4
5
6
7
8
import time

def application(env, start_response):
    delay = int(env.get('HTTP_X_DELAY', 0))

    start_response('200', [('Content-Length', '0'), ('X-Upstream', '1')])
    time.sleep(delay)
    return []