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