From e2c3fa630469bf006de5a983910e391c5889430d Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 12 Feb 2018 19:32:54 +0300 Subject: Tests: perl module. --- test/perl/server_port/psgi.pl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/perl/server_port/psgi.pl (limited to 'test/perl/server_port/psgi.pl') diff --git a/test/perl/server_port/psgi.pl b/test/perl/server_port/psgi.pl new file mode 100644 index 00000000..49ef1330 --- /dev/null +++ b/test/perl/server_port/psgi.pl @@ -0,0 +1,8 @@ +my $app = sub { + my ($environ) = @_; + + return ['200', [ + 'Content-Length' => 0, + 'Server-Port' => $environ->{'SERVER_PORT'} + ], []]; +}; -- cgit