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

lib/PublicInbox/RepoSnapshot.pm

index ebcbbd815c0730158f9140e2a35a91ba74bc15ec..6b7441b006ac19cd36204f14980f36e5d495642e 100644 (file)
@@ -58,7 +58,7 @@ sub ver_check { # git->check_async callback
                                "--git-dir=$ctx->{git}->{git_dir}", 'archive',
                                "--prefix=$ctx->{snap_pfx}/",
                                "--format=$ctx->{snap_fmt}", $treeish]);
-               $qsp->psgi_return($ctx->{env}, undef, \&archive_hdr, $ctx);
+               $qsp->psgi_yield($ctx->{env}, undef, \&archive_hdr, $ctx);
        }
 }