Navigation Menu

Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monken committed Apr 29, 2011
1 parent d6f3faa commit d1ac310
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,4 +4,5 @@
*.sqlite*
/var/tmp/
/var/log/metacpan.*
/t/var/tmp/
/etc/metacpan_local.pl
9 changes: 7 additions & 2 deletions lib/MetaCPAN/Plack/File.pm
Expand Up @@ -47,9 +47,14 @@ sub handle {
join( "/", @args ) );
$env->{PATH_INFO} = join("/", $index, $digest );
return $self->get_source($env);
}elsif(@args == 2) {
return $self->get_first_result($env);
}
# disabled for now because /MOO/abc/abc.t can either be the file
# abc.t in release abc of author MOO or the file abc/abc.t
# in the latest MOO release
#
# elsif(@args == 2) {
# return $self->get_first_result($env);
# }
}

1;
3 changes: 1 addition & 2 deletions lib/MetaCPAN/Script/Server.pm
Expand Up @@ -39,8 +39,7 @@ sub run {
my $runner = Plack::Runner->new;
shift @ARGV;

#$runner->parse_options(qw(-r -R .));
$runner->set_options( port => $self->port );
$runner->parse_options(@{$self->extra_argv});
$runner->run( $self->build_app );
}

Expand Down

0 comments on commit d1ac310

Please sign in to comment.