Tests: perl module.
This commit is contained in:
10
test/perl/input_copy/psgi.pl
Normal file
10
test/perl/input_copy/psgi.pl
Normal file
@@ -0,0 +1,10 @@
|
||||
my $app = sub {
|
||||
my ($environ) = @_;
|
||||
|
||||
open(my $fh, ">&", $environ->{'psgi.input'});
|
||||
|
||||
my $len = int($environ->{'CONTENT_LENGTH'});
|
||||
$fh->read(my $body, $len);
|
||||
|
||||
return ['200', ['Content-Length' => $len], [$body]];
|
||||
};
|
||||
Reference in New Issue
Block a user