diff options
author | Andrei Belov <defan@nginx.com> | 2020-03-12 18:40:48 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2020-03-12 18:40:48 +0300 |
commit | 4b7ca39903178e20ec7381205694cb01f0dec6bc (patch) | |
tree | 51afb9c7003b5927183e7ddecd766eb19e421233 /test/python/upstreams/1/wsgi.py | |
parent | 8414897527ed1616ea39a0cae4d1b8ee170d5cb8 (diff) | |
parent | b3c8a7b33a29208e75dfe4f670cf81dac7b99ccc (diff) | |
download | unit-4b7ca39903178e20ec7381205694cb01f0dec6bc.tar.gz unit-4b7ca39903178e20ec7381205694cb01f0dec6bc.tar.bz2 |
Merged with the default branch.1.16.0-1
Diffstat (limited to 'test/python/upstreams/1/wsgi.py')
-rw-r--r-- | test/python/upstreams/1/wsgi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/upstreams/1/wsgi.py b/test/python/upstreams/1/wsgi.py new file mode 100644 index 00000000..5077bdb1 --- /dev/null +++ b/test/python/upstreams/1/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', '1')]) + time.sleep(delay) + return [] |