xref: /unit/test/perl/input_read_empty/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    $len = $environ->{'psgi.input'}->read(my $body, 1024);
5*544Szelenkov@nginx.com
6*544Szelenkov@nginx.com    return ['200', ['Content-Length' => $len], [$body]];
7*544Szelenkov@nginx.com};
8