From 31882d6d5bbc5b8ecab657b1c5a2f71930e714ac Mon Sep 17 00:00:00 2001 From: "Michiel W. Beijen" Date: Sat, 31 Oct 2026 16:47:57 +0100 Subject: [PATCH 1/2] Accept the RFC 9110 reason phrase for 413 RFC 9110 renamed "413 Request Entity Too Large" to "413 Content Too Large". Accept both, so the tests pass against httpd with and without apache/httpd#908. * t/apache/chunkinput.t: Match the 413 status line with a regex. * t/modules/ext_filter.t: Likewise for the error page. Co-Authored-By: Claude Opus 5.5 --- t/apache/chunkinput.t | 7 +++++-- t/modules/ext_filter.t | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/t/apache/chunkinput.t b/t/apache/chunkinput.t index 25385856..b2533a83 100644 --- a/t/apache/chunkinput.t +++ b/t/apache/chunkinput.t @@ -18,6 +18,9 @@ my @test_strings = ("0", my @req_strings = ("/echo_post_chunk", "/i_do_not_exist_in_your_wildest_imagination"); +# RFC 9110 renamed "413 Request Entity Too Large" to "413 Content Too Large" +my $resp_toobig = qr{^HTTP/1\.1 413 (?:Request Entity|Content) Too Large$}; + # This is expanded out as these results... my @resp_strings = ("HTTP/1.1 200 OK", # "0" "HTTP/1.1 404 Not Found", @@ -31,8 +34,8 @@ my @resp_strings = ("HTTP/1.1 200 OK", # "0" "HTTP/1.1 404 Not Found", "HTTP/1.1 400 Bad Request", # >10 BWS "HTTP/1.1 400 Bad Request", - "HTTP/1.1 413 Request Entity Too Large", # Overflow size - "HTTP/1.1 413 Request Entity Too Large", + $resp_toobig, # Overflow size + $resp_toobig, "HTTP/1.1 400 Bad Request", # Ctrl in data "HTTP/1.1 400 Bad Request", "HTTP/1.1 400 Bad Request", # Invalid LWS diff --git a/t/modules/ext_filter.t b/t/modules/ext_filter.t index 79622ae5..068e545d 100644 --- a/t/modules/ext_filter.t +++ b/t/modules/ext_filter.t @@ -36,5 +36,5 @@ foreach (1..$iters) { $r = POST "/apache/extfilter/out-limit/modules/cgi/perl_echo.pl", content => "foo and bar\n"; ok t_cmp($r->code, 413, "got 413 error"); - ok t_cmp($r->content, qr/413 Request Entity Too Large/, "got 413 error body"); + ok t_cmp($r->content, qr/413 (?:Request Entity|Content) Too Large/, "got 413 error body"); } From 1fd30909ab652ee8722ae05cb8aa0c69f6eca845 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 2 Nov 2026 10:03:34 +0000 Subject: [PATCH 2/2] CI: Drop Net:SSL from the CPAN module list. --- .github/workflows/httpd-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/httpd-build.yml b/.github/workflows/httpd-build.yml index 5bd589a3..e95c4e3b 100644 --- a/.github/workflows/httpd-build.yml +++ b/.github/workflows/httpd-build.yml @@ -56,7 +56,7 @@ jobs: - name: Install Perl dependencies run: | cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) - cpanm --notest Net::SSL LWP::Protocol::https \ + cpanm --notest LWP::Protocol::https \ LWP::Protocol::AnyEvent::http ExtUtils::Embed Test::More \ AnyEvent DateTime HTTP::DAV FCGI \ AnyEvent::WebSocket::Client