xref: /unit/test/perl/body_io_file/psgi.pl (revision 544:c4bbb14c5bdb)
1*544Szelenkov@nginx.commy $app = sub {
2*544Szelenkov@nginx.com    my ($environ) = @_;
3*544Szelenkov@nginx.com
4*544Szelenkov@nginx.com    open my $io, '<file';
5*544Szelenkov@nginx.com
6*544Szelenkov@nginx.com    return ['200', ['Content-Length' => 5], $io];
7*544Szelenkov@nginx.com};
8