summaryrefslogtreecommitdiffhomepage
path: root/test/perl/input_read_empty
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/perl/input_read_empty/psgi.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/perl/input_read_empty/psgi.pl b/test/perl/input_read_empty/psgi.pl
new file mode 100644
index 00000000..caa894f4
--- /dev/null
+++ b/test/perl/input_read_empty/psgi.pl
@@ -0,0 +1,7 @@
+my $app = sub {
+ my ($environ) = @_;
+
+ $len = $environ->{'psgi.input'}->read(my $body, 1024);
+
+ return ['200', ['Content-Length' => $len], [$body]];
+};