diff options
Diffstat (limited to 'test/perl/server_port/psgi.pl')
-rw-r--r-- | test/perl/server_port/psgi.pl | 8 |
1 files changed, 8 insertions, 0 deletions
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'} + ], []]; +}; |