Tests: "Host" header tests.

This commit is contained in:
Andrey Zelenkov
2019-02-27 20:41:30 +03:00
parent 8488666d60
commit 4b92586530
2 changed files with 154 additions and 0 deletions

7
test/python/host/wsgi.py Normal file
View File

@@ -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 []