don't force an extra layer of streaming as doing so bypasses plack middlewares.

This commit is contained in:
Scott Walters 2011-05-04 23:11:56 -04:00
parent 423e19ae0e
commit 742db182e8
2 changed files with 31 additions and 23 deletions

View file

@ -74,7 +74,7 @@ sub call {
my $res = shift;
# Close the Session if we aren't streaming
if ( !$env->{'webgui.session'}->response->streaming ) {
if ( $env->{'webgui.session'} and $env->{'webgui.session'}->response and ! $env->{'webgui.session'}->response->streaming ) {
$env->{'webgui.session'}->close();
delete $env->{'webgui.session'};
}