Tests: added test for reading body from IO::Handle-like object.
This commit is contained in:
11
test/perl/body_io_fake/psgi.pl
Normal file
11
test/perl/body_io_fake/psgi.pl
Normal file
@@ -0,0 +1,11 @@
|
||||
use File::Basename;
|
||||
use lib dirname (__FILE__);
|
||||
use IOFake;
|
||||
|
||||
my $app = sub {
|
||||
my ($environ) = @_;
|
||||
|
||||
my $io = IOFake->new($environ->{'psgi.errors'});
|
||||
|
||||
return ['200', [ 'Content-Length' => '2' ], $io];
|
||||
};
|
||||
Reference in New Issue
Block a user