diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-27 20:41:30 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-27 20:41:30 +0300 |
commit | 4b925865303de419af13f046eb4e3ebeb53a8a25 (patch) | |
tree | b2810cd8195423b0c9d345fe8a830a064bc1770c /test/python | |
parent | 8488666d606582c63f1f88a84520195cdc2ba0d7 (diff) | |
download | unit-4b925865303de419af13f046eb4e3ebeb53a8a25.tar.gz unit-4b925865303de419af13f046eb4e3ebeb53a8a25.tar.bz2 |
Tests: "Host" header tests.
Diffstat (limited to 'test/python')
-rw-r--r-- | test/python/host/wsgi.py | 7 |
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 [] |