Skip to content

Commit

Permalink
when doing the POST version of a view query, remember to send the res…
Browse files Browse the repository at this point in the history
…t of the params
  • Loading branch information
beppu committed Apr 13, 2011
1 parent 0fd7189 commit bb2d84f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AnyEvent/CouchDB/Database.pm
Expand Up @@ -387,8 +387,10 @@ sub view {
my $uri = $self->uri . "_design/" . $dname . "/_view/" . $vname;
if ( $options->{keys} ) {
my $body = { keys => $options->{keys} };
my $opts = { %$options };
delete $opts->{keys};
http_request(
POST => $uri,
POST => $uri . $query->($opts),
headers => $self->_build_headers($options),
body => $self->json($body),
$cb
Expand Down

0 comments on commit bb2d84f

Please sign in to comment.