Skip to content

Commit

Permalink
fix #44. Publish IUnboundStreamIterator via publish_module
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Weis committed Feb 25, 2016
1 parent f0d1a33 commit 07ec768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZPublisher/WSGIPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def publish_module(environ, start_response,

body = response.body

if isinstance(body, file) or IStreamIterator.providedBy(body):
if isinstance(body, file) or IUnboundStreamIterator.providedBy(body):
result = body
else:
# If somebody used response.write, that data will be in the
Expand Down

0 comments on commit 07ec768

Please sign in to comment.