diff options
Diffstat (limited to '')
-rw-r--r-- | test/python/body_io/wsgi.py | 6 | ||||
-rw-r--r-- | test/python/body_io_file/file | 1 | ||||
-rw-r--r-- | test/python/body_io_file/wsgi.py | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/python/body_io/wsgi.py b/test/python/body_io/wsgi.py new file mode 100644 index 00000000..14303b5f --- /dev/null +++ b/test/python/body_io/wsgi.py @@ -0,0 +1,6 @@ +import io + +def application(env, start_response): + start_response('200', [('Content-Length', '10')]) + f = io.BytesIO(b'0123456789') + return f diff --git a/test/python/body_io_file/file b/test/python/body_io_file/file new file mode 100644 index 00000000..273a402f --- /dev/null +++ b/test/python/body_io_file/file @@ -0,0 +1 @@ +body diff --git a/test/python/body_io_file/wsgi.py b/test/python/body_io_file/wsgi.py new file mode 100644 index 00000000..713e341b --- /dev/null +++ b/test/python/body_io_file/wsgi.py @@ -0,0 +1,4 @@ +def application(env, start_response): + start_response('200', [('Content-Length', '5')]) + f = open('file', 'rb') + return f |