]> Sergey Matveev's repositories - public-inbox.git/commit
www: cgit: fix fallback to WwwCoderepo on array responses
authorEric Wong <e@80x24.org>
Sat, 8 Oct 2022 08:24:47 +0000 (08:24 +0000)
committerEric Wong <e@80x24.org>
Sun, 9 Oct 2022 16:48:38 +0000 (16:48 +0000)
commitdda0b4ab620e1709c0e25b3d9d70745fe52d60d3
tree3bce5fdb809237cba08514cdb5c228e745a33851
parentcb4f3af963674ccdb0d540656bd2c58f9e130cf9
www: cgit: fix fallback to WwwCoderepo on array responses

For fast PSGI responses which don't require returning a coderef,
just reuse qspawn.wcb directly on the arrayref to avoid an undef
$wcb from firing in psgi_return_init_cb.

I only noticed this because the ViewVCS search form is broken
for /$CODEREPO/$OID/s/ endpoints at the moment.
lib/PublicInbox/GitHTTPBackend.pm