Files
nginx-unit/test/perl/input_read_empty/psgi.pl
2018-02-12 19:32:54 +03:00

8 lines
161 B
Perl

my $app = sub {
my ($environ) = @_;
$len = $environ->{'psgi.input'}->read(my $body, 1024);
return ['200', ['Content-Length' => $len], [$body]];
};