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/input_read_offset | |
parent | 9646772a00e50c437e0b3204ce6233b6414e1053 (diff) | |
download | unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.gz unit-e2c3fa630469bf006de5a983910e391c5889430d.tar.bz2 |
Tests: perl module.
Diffstat (limited to 'test/perl/input_read_offset')
-rw-r--r-- | test/perl/input_read_offset/psgi.pl | 7 |
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]]; +}; |