summaryrefslogtreecommitdiffhomepage
path: root/test/python
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-02-27 20:41:30 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-02-27 20:41:30 +0300
commit4b925865303de419af13f046eb4e3ebeb53a8a25 (patch)
treeb2810cd8195423b0c9d345fe8a830a064bc1770c /test/python
parent8488666d606582c63f1f88a84520195cdc2ba0d7 (diff)
downloadunit-4b925865303de419af13f046eb4e3ebeb53a8a25.tar.gz
unit-4b925865303de419af13f046eb4e3ebeb53a8a25.tar.bz2
Tests: "Host" header tests.
Diffstat (limited to 'test/python')
-rw-r--r--test/python/host/wsgi.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/python/host/wsgi.py b/test/python/host/wsgi.py
new file mode 100644
index 00000000..db7de306
--- /dev/null
+++ b/test/python/host/wsgi.py
@@ -0,0 +1,7 @@
+def application(env, start_response):
+ start_response('200', [
+ ('Content-Length', '0'),
+ ('X-Server-Name', env.get('SERVER_NAME')),
+ ('X-Http-Host', str(env.get('HTTP_HOST')))
+ ])
+ return []