Ticket #277: WSGIFilter-rhs_generator_shortcut.patch
| File WSGIFilter-rhs_generator_shortcut.patch, 0.9 KB (added by tseaver, 4 years ago) |
|---|
-
wsgifilter/filter.py
old new 75 75 if shortcutted: 76 76 # We chose not to filter 77 77 return app_iter 78 if not capturedor written_output:78 if (not captured) or written_output: 79 79 # This app hasn't called start_response We can't do 80 80 # anything magic with it; or it used the start_response 81 81 # writer, and we still can't do anything with it … … 86 86 if hasattr(app_iter, 'close'): 87 87 app_iter.close() 88 88 app_iter = written_output 89 if shortcutted: 90 # We chose not to filter (delayed due to RHS generator) 91 return app_iter 89 92 try: 90 93 return self.filter_output( 91 94 environ, start_response,
