summaryrefslogtreecommitdiffhomepage
path: root/test/perl/input_close/psgi.pl
blob: 4a2d9bb93c9a74445362f38d2e00ad38429dbe86 (plain) (blame)
1
2
3
4
5
6
7
8
my $app = sub {
    my ($environ) = @_;

    $environ->{'psgi.input'}->read(my $body, 1024);
    $environ->{'psgi.input'}->close();

    return ['200', ['Content-Length' => length $body], [$body]];
};