From 18ddb747725d24a65b61e0b8ca5d072f52724190 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 19 Nov 2020 05:21:48 +0000 Subject: Tests: added tests for a "discard_unsafe_fields" option. --- test/python/header_fields/wsgi.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/python/header_fields/wsgi.py (limited to 'test/python/header_fields') 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 [] -- cgit