Skip to content

Commit

Permalink
Don't send URI params in the path when calling request()
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 24, 2016
1 parent afed642 commit 9305282
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Web/Controller/Author.pm
Expand Up @@ -73,12 +73,12 @@ sub index : Chained('root') PathPart('') Args(0) {
$c->stash(
{
author => $author,
releases => $releases,
faves => $faves,
releases => $releases,
show_author => 1,
template => 'author.html',
took => $took,
total => $data->{hits}->{total},
template => 'author.html'
}
);

Expand Down
6 changes: 3 additions & 3 deletions lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -87,13 +87,13 @@ sub view : Private {

$c->detach('/not_found') unless ( $data->{name} );

my $pod_url
= '/pod/' . ( $pod || join( q{/}, @path ) ) . '?show_errors=1';
my $pod_path = '/pod/' . ( $pod || join( q{/}, @path ) );

my $reqs = $self->api_requests(
$c,
{
pod => $c->model('API')->request($pod_url),
pod => $c->model('API')
->request( $pod_path, undef, { show_errors => 1 } ),
release => $c->model('API::Release')
->get( @{$data}{qw(author release)} ),
},
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Model/API.pm
Expand Up @@ -42,7 +42,7 @@ sub cv {

=head2 COMPONENT
Set C<api> and C<api_secure> config parameters from the app config object.
Set C<api_secure> config parameters from the app config object.
=cut

Expand Down

0 comments on commit 9305282

Please sign in to comment.