Navigation Menu

Skip to content

Commit

Permalink
Fix fetch URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Oct 16, 2017
1 parent d71e906 commit d00187f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MetaCPAN/Client/Request.pm
Expand Up @@ -79,6 +79,7 @@ sub fetch {
my $self = shift;
my $url = shift or croak 'fetch must be called with a URL parameter';
my $params = shift || {};
$url =~ s{^/}{};
my $req_url = sprintf '%s/%s', $self->base_url, $url;
my $ua = $self->ua;

Expand Down

0 comments on commit d00187f

Please sign in to comment.