Add native size limiting to WebGUI via plack. This is no longer a WRE specific feature.

This commit is contained in:
Colin Kuskie 2011-12-31 19:01:25 -08:00
parent 55a05e99fa
commit 03a22421a7
3 changed files with 11 additions and 0 deletions

View file

@ -66,6 +66,9 @@ sub call {
my $self = shift;
my $env = shift;
##Enable size limiting
$env->{'psgix.harakiri'} = 1;
my $session = $env->{'webgui.session'}
or die 'Missing WebGUI Session - check WebGUI::Middleware::Session';