Tests: added tests for a "discard_unsafe_fields" option.

This commit is contained in:
Andrei Zeliankou
2020-11-19 05:21:48 +00:00
parent e154d7a3a2
commit 18ddb74772
2 changed files with 47 additions and 0 deletions

View File

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