summaryrefslogtreecommitdiffhomepage
path: root/test/python/custom_header
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-03-16 17:45:25 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-03-16 17:45:25 +0300
commitf0df93ee3bb59923505e34c6b302fb2b7325ee80 (patch)
tree070fe5552663af833b7449aec447446fc60870af /test/python/custom_header
parent701a54c177466c9cbcb82f68c27880281850bd93 (diff)
downloadunit-f0df93ee3bb59923505e34c6b302fb2b7325ee80.tar.gz
unit-f0df93ee3bb59923505e34c6b302fb2b7325ee80.tar.bz2
Tests: HTTP header field and value tests.
Diffstat (limited to 'test/python/custom_header')
-rw-r--r--test/python/custom_header/wsgi.py7
1 files changed, 7 insertions, 0 deletions
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 []