don't force an extra layer of streaming as doing so bypasses plack middlewares.
This commit is contained in:
parent
423e19ae0e
commit
742db182e8
2 changed files with 31 additions and 23 deletions
|
|
@ -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'};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue