]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/httpd-corner.psgi
search: {version} => {ibx_ver}
[public-inbox.git] / t / httpd-corner.psgi
index 9728aa05a0aa081f6c4b4bf7f23d7bcb27b25656..18e556be0e39c29c5ca20f64ddbb4953da8052b4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 # corner case tests for the generic PSGI server
 # Usage: plackup [OPTIONS] /path/to/this/file
@@ -85,6 +85,9 @@ my $app = sub {
                        close $null;
                        [ 200, [ qw(Content-Type application/octet-stream) ]];
                });
+       } elsif ($path eq '/pid') {
+               $code = 200;
+               push @$body, "$$\n";
        }
 
        [ $code, $h, $body ]