Skip to content

Commit 0d850ff

Browse files
committed
download_url end point should query releases for "perl"
1 parent 804b967 commit 0d850ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MetaCPAN/Server/Controller/Search/DownloadURL.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ has '+type' => ( default => 'file' );
1313

1414
sub get : Local : Path('/download_url') : Args(1) {
1515
my ( $self, $c, $module ) = @_;
16-
my $type = 'module';
16+
my $type = $module eq 'perl' ? 'dist' : 'module';
1717
my $data
1818
= $self->model($c)
1919
->find_download_url( $type, $module, $c->req->params );

0 commit comments

Comments
 (0)