From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4C0F11F87E for ; Mon, 23 Oct 2023 08:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698050920; bh=Uz5xeP4iwDQJYm7UsykIDIQ7KhTSdemACixIG6gxqec=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XKObMnMidTnSOD4/rgeMjCKEkHkZvRyA/i78I4IZ0tcMWAUdCjgiNwbMMpcU5f7vy 7JmFaI5sB22rROlTzhPjbjJV1qCl5cJFTLXzU1feyz6eczDNK0EVdEoUtBcE7SjhUH EnpDdd4DVxfhIh9kLPxecTeyz+XpXWptrTNW7igs= From: Eric Wong To: spew@80x24.org Subject: [PATCH 15/18] www_coderepo: psgi_yield Date: Mon, 23 Oct 2023 08:48:34 +0000 Message-ID: <20231023084837.2804687-15-e@80x24.org> In-Reply-To: <20231023084837.2804687-1-e@80x24.org> References: <20231023084837.2804687-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Yet another drop-in replacement for psgi_return. --- lib/PublicInbox/WwwCoderepo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm index 68c4c86d..6e19fc02 100644 --- a/lib/PublicInbox/WwwCoderepo.pm +++ b/lib/PublicInbox/WwwCoderepo.pm @@ -277,7 +277,7 @@ sub refs_foo { # /$REPO/refs/{heads,tags} endpoints $ctx->{-heads} = 1 if $pfx eq 'refs/heads'; my $qsp = PublicInbox::Qspawn->new([@EACH_REF, $pfx ], { GIT_DIR => $ctx->{git}->{git_dir} }); - $qsp->psgi_return($ctx->{env}, undef, \&_refs_parse_hdr, $ctx); + $qsp->psgi_yield($ctx->{env}, undef, \&_refs_parse_hdr, $ctx); } sub srv { # endpoint called by PublicInbox::WWW