We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804b967 commit 0d850ffCopy full SHA for 0d850ff
lib/MetaCPAN/Server/Controller/Search/DownloadURL.pm
@@ -13,7 +13,7 @@ has '+type' => ( default => 'file' );
13
14
sub get : Local : Path('/download_url') : Args(1) {
15
my ( $self, $c, $module ) = @_;
16
- my $type = 'module';
+ my $type = $module eq 'perl' ? 'dist' : 'module';
17
my $data
18
= $self->model($c)
19
->find_download_url( $type, $module, $c->req->params );
0 commit comments