summaryrefslogtreecommitdiffhomepage
path: root/test/python/variables/wsgi.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 17:03:41 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 17:03:41 +0300
commita01a98ce36dd47c1be1df37470cac1656efac31e (patch)
treea2b962d568e14562b9274d142b239eedc6eae1df /test/python/variables/wsgi.py
parentefb71121b98c4dfded212e8b6fe33873cfd83376 (diff)
downloadunit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.gz
unit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.bz2
Tests: more Python tests.
Diffstat (limited to '')
-rw-r--r--test/python/variables/wsgi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/python/variables/wsgi.py b/test/python/variables/wsgi.py
index 1d4d397d..60fa3401 100644
--- a/test/python/variables/wsgi.py
+++ b/test/python/variables/wsgi.py
@@ -10,6 +10,11 @@ def application(environ, start_response):
('Request-Uri', environ.get('REQUEST_URI')),
('Http-Host', environ.get('HTTP_HOST')),
('Server-Protocol', environ.get('SERVER_PROTOCOL')),
- ('Custom-Header', environ.get('HTTP_CUSTOM_HEADER'))
+ ('Custom-Header', environ.get('HTTP_CUSTOM_HEADER')),
+ ('Wsgi-Version', str(environ['wsgi.version'])),
+ ('Wsgi-Url-Scheme', environ['wsgi.url_scheme']),
+ ('Wsgi-Multithread', str(environ['wsgi.multithread'])),
+ ('Wsgi-Multiprocess', str(environ['wsgi.multiprocess'])),
+ ('Wsgi-Run-Once', str(environ['wsgi.run_once']))
])
return [body]