From e2c3fa630469bf006de5a983910e391c5889430d Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 12 Feb 2018 19:32:54 +0300 Subject: Tests: perl module. --- test/perl/input_read_offset/psgi.pl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/perl/input_read_offset/psgi.pl (limited to 'test/perl/input_read_offset') diff --git a/test/perl/input_read_offset/psgi.pl b/test/perl/input_read_offset/psgi.pl new file mode 100644 index 00000000..420b7d89 --- /dev/null +++ b/test/perl/input_read_offset/psgi.pl @@ -0,0 +1,7 @@ +my $app = sub { + my ($environ) = @_; + + $environ->{'psgi.input'}->read(my $body, 4, 4); + + return ['200', ['Content-Length' => 4], [$body]]; +}; -- cgit