summaryrefslogtreecommitdiffhomepage
path: root/test/perl/input_read_offset
diff options
context:
space:
mode:
Diffstat (limited to 'test/perl/input_read_offset')
-rw-r--r--test/perl/input_read_offset/psgi.pl7
1 files changed, 7 insertions, 0 deletions
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]];
+};