Skip to content

Commit

Permalink
Merge pull request #523 from metacpan/mickey/fix_source_param
Browse files Browse the repository at this point in the history
fix 'source' parameter for request body
  • Loading branch information
oalders committed Sep 10, 2016
2 parents 5ba3d13 + ab69614 commit 5a012af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller.pm
Expand Up @@ -112,7 +112,7 @@ sub search : Path('_search') : ActionClass('Deserialize') {
{
index => $c->model('CPAN')->index,
type => $self->type,
body => $c->req->data,
body => $c->req->data || delete $params->{source},
%$params,
}
)
Expand Down

0 comments on commit 5a012af

Please sign in to comment.