Skip to content

Commit 7bd1d85

Browse files
committed
fix the pod end point when given a module name
The find_pod method returns a hashref of attributes. It does not include a _source field.
1 parent 8033be9 commit 7bd1d85

File tree

1 file changed

+1
-1
lines changed
  • lib/MetaCPAN/Server/Controller

1 file changed

+1
-1
lines changed

lib/MetaCPAN/Server/Controller/Pod.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sub get : Path('') : Args(1) {
3939
$module = $c->model('ESQuery')->file->find_pod($module)
4040
or $c->detach( '/not_found', [] );
4141
$c->forward( 'find',
42-
[ map { $module->{_source}{$_} } qw(author release path) ] );
42+
[ map { $module->{$_} } qw(author release path) ] );
4343
}
4444

4545
sub find_dist_links {

0 commit comments

Comments
 (0)