From 4b925865303de419af13f046eb4e3ebeb53a8a25 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 27 Feb 2019 20:41:30 +0300 Subject: Tests: "Host" header tests. --- test/python/host/wsgi.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/python/host/wsgi.py (limited to 'test/python') 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 [] -- cgit