ClosingIterator closes iterable passed to it and not the iterator #1260
This fixes #1259.
According to wsgi specification:
This commit adds test for this and fixes the issue.
The text was updated successfully, but these errors were encountered:
This is a fix for pallets#1259. According to [wsgi specification](https://www.python.org/dev/peps/pep-3333): > If the iterable returned by the application has a close() method, the > server or gateway must call that method upon completion of the current > request This commit adds test for this and fixes the issue.