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 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"); }