From f0df93ee3bb59923505e34c6b302fb2b7325ee80 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Fri, 16 Mar 2018 17:45:25 +0300 Subject: Tests: HTTP header field and value tests. --- test/python/custom_header/wsgi.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/python/custom_header/wsgi.py (limited to 'test/python/custom_header/wsgi.py') diff --git a/test/python/custom_header/wsgi.py b/test/python/custom_header/wsgi.py new file mode 100644 index 00000000..44f145d1 --- /dev/null +++ b/test/python/custom_header/wsgi.py @@ -0,0 +1,7 @@ +def application(environ, start_response): + + start_response('200', [ + ('Content-Length', '0'), + ('Custom-Header', environ.get('HTTP_CUSTOM_HEADER')) + ]) + return [] -- cgit