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 926f55e commit b3d2b1d
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 b3d2b1d

Please sign in to comment.