The PublicInbox::Cgit wrapper will return a sub-ref for most
responses, so ensure we don't try to treat it as an array-ref.
my $www = $ctx->{www};
my $env = $ctx->{env};
my $res = $www->news_www->call($env);
- $res = $www->cgit->call($env) if $res->[0] == 404;
- $res = $www->coderepo->srv($ctx) if $res->[0] == 404;
+ $res = $www->cgit->call($env, $ctx) if $res->[0] == 404;
+ ref($res) eq 'ARRAY' && $res->[0] == 404 and
+ $res = $www->coderepo->srv($ctx);
$res;
}