summaryrefslogtreecommitdiffhomepage
path: root/test/python/input_iter
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/input_iter')
-rw-r--r--test/python/input_iter/wsgi.py5
1 files changed, 5 insertions, 0 deletions
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]