diff --git a/lib/MetaCPAN/Query/File.pm b/lib/MetaCPAN/Query/File.pm index 311ac4028..019608966 100644 --- a/lib/MetaCPAN/Query/File.pm +++ b/lib/MetaCPAN/Query/File.pm @@ -452,7 +452,7 @@ sub _autocomplete { return { took => $sugg_res->{took} + $res->{took} + $fav_res->{took}, - suggestions => \@sorted, + suggestions => [ ( $exact ? $exact : () ), @sorted ], }; }