Skip to content

Commit

Permalink
Reverse dependencies: pass 'sort' in the request body
Browse files Browse the repository at this point in the history
The 'sort' param is a complex structure (hash) which gets
stringified if passed as a URL param which leads to an error
on the API side, and data not to be displayed on the page.
  • Loading branch information
mickeyn committed Nov 8, 2017
1 parent 726aaee commit 49e11b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Model/API/Release.pm
Expand Up @@ -75,7 +75,7 @@ sub reverse_dependencies {
$sort ||= { date => 'desc' };

return $self->request( "/reverse_dependencies/dist/$distribution",
undef, { sort => $sort } );
{ sort => $sort } );
}

sub interesting_files {
Expand Down

0 comments on commit 49e11b7

Please sign in to comment.