Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/httpd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions t/apache/chunkinput.t
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion t/modules/ext_filter.t
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Loading