diff options
Diffstat (limited to '')
-rw-r--r-- | test/python/upstreams/0/wsgi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/upstreams/0/wsgi.py b/test/python/upstreams/0/wsgi.py new file mode 100644 index 00000000..2c88979b --- /dev/null +++ b/test/python/upstreams/0/wsgi.py @@ -0,0 +1,8 @@ +import time + +def application(env, start_response): + delay = int(env.get('HTTP_X_DELAY', 0)) + + start_response('200', [('Content-Length', '0'), ('X-Upstream', '0')]) + time.sleep(delay) + return [] |