diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-12 19:32:54 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-12 19:32:54 +0300 |
commit | e2c3fa630469bf006de5a983910e391c5889430d (patch) | |
tree | 2021663f938438db7c18b3bcc87b6402b6d6b5e1 /test/perl/body_io_file | |
parent | 9646772a00e50c437e0b3204ce6233b6414e1053 (diff) | |
download | unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.gz unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.bz2 |
Tests: perl module.
Diffstat (limited to '')
-rw-r--r-- | test/perl/body_io_file/file | 1 | ||||
-rw-r--r-- | test/perl/body_io_file/psgi.pl | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/perl/body_io_file/file b/test/perl/body_io_file/file new file mode 100644 index 00000000..273a402f --- /dev/null +++ b/test/perl/body_io_file/file @@ -0,0 +1 @@ +body diff --git a/test/perl/body_io_file/psgi.pl b/test/perl/body_io_file/psgi.pl new file mode 100644 index 00000000..2612ae18 --- /dev/null +++ b/test/perl/body_io_file/psgi.pl @@ -0,0 +1,7 @@ +my $app = sub { + my ($environ) = @_; + + open my $io, '<file'; + + return ['200', ['Content-Length' => 5], $io]; +}; |