]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/httpd-corner.psgi
http: avoid corking on "Content-Length: 0" response
[public-inbox.git] / t / httpd-corner.psgi
index da8a2ee8b646ef7b9937c9d72ab9616e924f4fd3..2f7be8320eaf518cb2772e7a53519df6f245f7c2 100644 (file)
@@ -56,6 +56,8 @@ my $app = sub {
                        $fh->write($buf);
                        $fh->close;
                }
+       } elsif ($path eq '/empty') {
+               $code = 200;
        }
 
        [ $code, $h, $body ]