Skip to content

Commit

Permalink
download_url end point should query releases for "perl"
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Apr 25, 2024
1 parent 8517f0d commit 7b61dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Search/DownloadURL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ has '+type' => ( default => 'file' );

sub get : Local : Path('/download_url') : Args(1) {
my ( $self, $c, $module ) = @_;
my $type = 'module';
my $type = $module eq 'perl' ? 'dist' : 'module';
my $data
= $self->model($c)
->find_download_url( $type, $module, $c->req->params );
Expand Down

0 comments on commit 7b61dc4

Please sign in to comment.