]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
www_coderepo: use psgi_yield
authorEric Wong <e@80x24.org>
Wed, 25 Oct 2023 00:29:38 +0000 (00:29 +0000)
committerEric Wong <e@80x24.org>
Wed, 25 Oct 2023 07:28:41 +0000 (07:28 +0000)
Yet another drop-in replacement for psgi_return.

lib/PublicInbox/WwwCoderepo.pm

index 68c4c86d72c48c279767ff077f6cbfa9b6b27453..6e19fc0260c51db229ac3020abf855e2d8be341d 100644 (file)
@@ -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