]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
test_common: -httpd requires HTTP::{Date,Status}
authorEric Wong <e@80x24.org>
Mon, 16 Sep 2024 21:02:59 +0000 (21:02 +0000)
committerEric Wong <e@80x24.org>
Tue, 17 Sep 2024 23:35:39 +0000 (23:35 +0000)
HTTP::Date and HTTP::Status are required for Plack anyways,
but make it explicit in case we drop the Plack requirement.

lib/PublicInbox/TestCommon.pm

index 8c70c6c2eeb5007150ed2a62f6c2992b8d2a5078..195dc3eba43b750e78138342c87fadd61c9f6e55 100644 (file)
@@ -209,7 +209,8 @@ sub require_mods {
                if ($mod eq 'json') {
                        $mod = 'Cpanel::JSON::XS||JSON::MaybeXS||JSON||JSON::PP'
                } elsif ($mod eq '-httpd') {
-                       push @mods, qw(Plack::Builder Plack::Util);
+                       push @mods, qw(Plack::Builder Plack::Util
+                               HTTP::Date HTTP::Status);
                        next;
                } elsif ($mod eq '-imapd') {
                        push @mods, qw(Parse::RecDescent DBD::SQLite);