diff options
author | pjenvey <devnull@localhost> | 2006-07-26 07:28:17 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-07-26 07:28:17 +0000 |
commit | 7db74fa8fdb0a48a673b3488e5d1fe8cc73bcc13 (patch) | |
tree | e6996dc6bf5192abd73f11b2db169aebc66f0e72 /paste/errordocument.py | |
parent | 2609e41126e646e5339a0f48c26e366adf98b06e (diff) | |
download | paste-7db74fa8fdb0a48a673b3488e5d1fe8cc73bcc13.tar.gz |
StatusBasedForward will consume the enclosed app's response when the Forward
condition is met, but wasn't close()ing it when it's iterable
Diffstat (limited to 'paste/errordocument.py')
-rw-r--r-- | paste/errordocument.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/errordocument.py b/paste/errordocument.py index b041203..3a7c670 100644 --- a/paste/errordocument.py +++ b/paste/errordocument.py @@ -175,6 +175,10 @@ class StatusBasedForward: app_iter = self.application(environ, change_response) if url: + if hasattr(app_iter, 'close'): + list(app_iter) + app_iter.close() + if self.debug: environ['wsgi.errors'].write( '=> paste.errordocuments: -> %r\n'%url[0][0] |