From e2c3fa630469bf006de5a983910e391c5889430d Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 12 Feb 2018 19:32:54 +0300 Subject: Tests: perl module. --- test/perl/errors_print/psgi.pl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/perl/errors_print/psgi.pl (limited to 'test/perl/errors_print') 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]]; +}; -- cgit