Changeset 41

Show
Ignore:
Timestamp:
09/16/08 21:06:33 (6 years ago)
Author:
jesus
Message:

if these things die, then the response finish won't run which is 'uber-bad'. Put them in the eval so they to are exception handled. fixes #14

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/Mungo.pm

    r35 r41  
    226226  $self = $self->new($r) unless(ref $self); 
    227227  $self->Response()->start(); 
    228   $main::Request = $self->Request(); 
    229   $main::Response = $self->Response(); 
    230   $main::Server = $self->Server(); 
    231228  local $SIG{__DIE__} = \&Mungo::MungoDie; 
    232229  eval { 
     230    $main::Request = $self->Request(); 
     231    $main::Response = $self->Response(); 
     232    $main::Server = $self->Server(); 
    233233    $self->Response()->Include($r->filename); 
    234234  };