summaryrefslogtreecommitdiff
path: root/bottle.py
diff options
context:
space:
mode:
Diffstat (limited to 'bottle.py')
-rwxr-xr-xbottle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index a8565d7..9f4503e 100755
--- a/bottle.py
+++ b/bottle.py
@@ -1312,7 +1312,8 @@ class BaseRequest(object):
yield part
else: # Non Content-Length header
# Assume 'wsgi.input_terminated' support or 'Connection: close'
- yield from iter(lambda: read(bufsize), b'')
+ for part in iter(lambda: read(bufsize), b''):
+ yield part
@staticmethod
def _iter_chunked(read, bufsize):