From: Eric Wong Date: Sat, 14 Jun 2025 09:26:31 +0000 (+0000) Subject: tests: disable ContentLength middleware in *.psgi X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8960831a4320d212795a2a0e67bdeae665fcd434;p=thirdparty%2Fpublic-inbox.git tests: disable ContentLength middleware in *.psgi Our HTTP server code already calculates Content-Length in order to support persistent connections, so the middleware is redundant. --- diff --git a/t/alt.psgi b/t/alt.psgi index c7f42979c..c530948a4 100644 --- a/t/alt.psgi +++ b/t/alt.psgi @@ -11,7 +11,6 @@ my $app = sub { }; builder { - enable 'ContentLength'; enable 'Head'; $app; } diff --git a/t/httpd-corner.psgi b/t/httpd-corner.psgi index b38ffd56e..0e668cc98 100644 --- a/t/httpd-corner.psgi +++ b/t/httpd-corner.psgi @@ -161,7 +161,6 @@ my $app = sub { }; builder { - enable 'ContentLength'; enable 'Head'; $app; }