diff options
Diffstat (limited to 'test/perl')
-rw-r--r-- | test/perl/variables/psgi.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/perl/variables/psgi.pl b/test/perl/variables/psgi.pl index c0a61b67..bed20af8 100644 --- a/test/perl/variables/psgi.pl +++ b/test/perl/variables/psgi.pl @@ -4,6 +4,8 @@ my $app = sub { my $len = int($environ->{'CONTENT_LENGTH'}); $environ->{'psgi.input'}->read(my $body, $len); + my $version = join('', @{$environ->{'psgi.version'}}); + return ['200', [ 'Content-Type' => $environ->{'CONTENT_TYPE'}, 'Content-Length' => $len, @@ -11,6 +13,13 @@ my $app = sub { 'Request-Uri' => $environ->{'REQUEST_URI'}, 'Http-Host' => $environ->{'HTTP_HOST'}, 'Server-Protocol' => $environ->{'SERVER_PROTOCOL'}, - 'Custom-Header' => $environ->{'HTTP_CUSTOM_HEADER'} + 'Custom-Header' => $environ->{'HTTP_CUSTOM_HEADER'}, + 'Psgi-Version' => $version, + 'Psgi-Url-Scheme' => $environ->{'psgi.url_scheme'}, + 'Psgi-Multithread' => $environ->{'psgi.multithread'}, + 'Psgi-Multiprocess' => $environ->{'psgi.multiprocess'}, + 'Psgi-Run-Once' => $environ->{'psgi.run_once'}, + 'Psgi-Nonblocking' => $environ->{'psgi.nonblocking'}, + 'Psgi-Streaming' => $environ->{'psgi.streaming'} ], [$body]]; }; |