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

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

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