Skip to content

Commit

Permalink
fix 'source' parameter for request body
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Sep 9, 2016
1 parent 5ba3d13 commit ab69614
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 ab69614

Please sign in to comment.