diff options
Diffstat (limited to '')
-rw-r--r-- | test/perl/errors_print/psgi.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/perl/errors_print/psgi.pl b/test/perl/errors_print/psgi.pl new file mode 100644 index 00000000..e50ec65d --- /dev/null +++ b/test/perl/errors_print/psgi.pl @@ -0,0 +1,7 @@ +my $app = sub { + my ($environ) = @_; + + my $result = $environ->{'psgi.errors'}->print('Error in application'); + + return ['200', ['Content-Length' => '1'], [$result]]; +}; |