From 8960831a4320d212795a2a0e67bdeae665fcd434 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Jun 2025 09:26:31 +0000 Subject: [PATCH] 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. --- t/alt.psgi | 1 - t/httpd-corner.psgi | 1 - 2 files changed, 2 deletions(-) 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; } -- 2.47.3