From 79fed202af0d05d50dee398444a90947ba7c2a3b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Jun 2025 09:26:33 +0000 Subject: [PATCH] daemon: allow `out' directive for HTTP, too While we currently don't output the the `out' directive for HTTP as we do for protocols which lack PSGI support; the special case for HTTP doesn't make sense as (in theory) a PSGI middleware could someday exist to write to that destination. --- lib/PublicInbox/Daemon.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index c199a9267..c5af83677 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -135,9 +135,7 @@ sub load_mod ($;$$) { }; $xn{post_accept} = $tlsd->can('post_accept_cb') ? $tlsd->post_accept_cb : sub { $modc->new($_[0], $tlsd) }; - my @paths = qw(out err); if ($modc eq 'PublicInbox::HTTP') { - @paths = qw(err); $xn{af_default} = 'httpready'; if (my $p = $opt->{psgi}) { die "multiple psgi= options specified\n" if @$p > 1; @@ -146,7 +144,7 @@ sub load_mod ($;$$) { warn "# $scheme://$addr psgi=$p->[0]\n"; } } - for my $f (@paths) { + for my $f (qw(out err)) { my $p = $opt->{$f} or next; die "multiple $f= options specified\n" if @$p > 1; check_absolute("$f=", $p->[0]) if $daemonize; -- 2.47.3