diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-11-19 05:21:48 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-11-19 05:21:48 +0000 |
commit | 18ddb747725d24a65b61e0b8ca5d072f52724190 (patch) | |
tree | a13078724a3359d090ca5b39dc8dc8e6f32e2a42 /test/python/header_fields/wsgi.py | |
parent | e154d7a3a26359e60544b2b578990fc3514422a4 (diff) | |
download | unit-18ddb747725d24a65b61e0b8ca5d072f52724190.tar.gz unit-18ddb747725d24a65b61e0b8ca5d072f52724190.tar.bz2 |
Tests: added tests for a "discard_unsafe_fields" option.
Diffstat (limited to 'test/python/header_fields/wsgi.py')
-rw-r--r-- | test/python/header_fields/wsgi.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/python/header_fields/wsgi.py b/test/python/header_fields/wsgi.py new file mode 100644 index 00000000..bd1ba0e2 --- /dev/null +++ b/test/python/header_fields/wsgi.py @@ -0,0 +1,9 @@ +def application(environ, start_response): + + h = (k for k, v in environ.items() if k.startswith('HTTP_')) + + start_response('200', [ + ('Content-Length', '0'), + ('All-Headers', ','.join(h)) + ]) + return [] |