]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
tests: disable ContentLength middleware in *.psgi
authorEric Wong <e@80x24.org>
Sat, 14 Jun 2025 09:26:31 +0000 (09:26 +0000)
committerEric Wong <e@80x24.org>
Mon, 16 Jun 2025 20:10:19 +0000 (20:10 +0000)
Our HTTP server code already calculates Content-Length in order to
support persistent connections, so the middleware is redundant.

t/alt.psgi
t/httpd-corner.psgi

index c7f42979c607c7691ac4904d4b338461078cb08c..c530948a46584d07e781af601f72736a5a569262 100644 (file)
@@ -11,7 +11,6 @@ my $app = sub {
 };
 
 builder {
-       enable 'ContentLength';
        enable 'Head';
        $app;
 }
index b38ffd56ed67d44eac440351e778de85fea6b6f6..0e668cc98a17a224b49e481fb6c7fda30f428a46 100644 (file)
@@ -161,7 +161,6 @@ my $app = sub {
 };
 
 builder {
-       enable 'ContentLength';
        enable 'Head';
        $app;
 }