summaryrefslogtreecommitdiff
path: root/wsgitools/adapters.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/adapters.py')
-rw-r--r--wsgitools/adapters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/adapters.py b/wsgitools/adapters.py
index 86a1412..5a4983b 100644
--- a/wsgitools/adapters.py
+++ b/wsgitools/adapters.py
@@ -51,7 +51,7 @@ class WSGI1to2Adapter:
if isinstance(iterable, list):
# retaining .close attribute this way
iterable[:0] = results[2]
- return results[0], results[1], results[2]
+ return results[0], results[1], iterable
close_function = getattr(iterable, "close", None)
iterable = iter(iterable)
try: