From a01a98ce36dd47c1be1df37470cac1656efac31e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 2 Apr 2018 17:03:41 +0300 Subject: Tests: more Python tests. --- test/python/input_iter/wsgi.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/python/input_iter/wsgi.py (limited to 'test/python/input_iter/wsgi.py') diff --git a/test/python/input_iter/wsgi.py b/test/python/input_iter/wsgi.py new file mode 100644 index 00000000..d3bf437f --- /dev/null +++ b/test/python/input_iter/wsgi.py @@ -0,0 +1,5 @@ +def application(environ, start_response): + body = bytes(environ['wsgi.input'].__iter__()) + + start_response('200', [('Content-Length', str(len(body)))]) + return [body] -- cgit