Skip to content

Commit

Permalink
Fixed JSON encoding of view args
Browse files Browse the repository at this point in the history
  • Loading branch information
jonallen committed May 4, 2010
1 parent 4481501 commit 91172ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CouchDB/Client/DB.pm
Expand Up @@ -242,7 +242,7 @@ sub fixViewArgs {
for my $k (keys %args) {
if ($k eq 'key' or $k eq 'startkey' or $k eq 'endkey') {
if (ref($args{$k}) eq 'ARRAY' or ref($args{$k}) eq 'HASH') {
$args{$k} = $self->server->json->encode($args{$k});
$args{$k} = $self->{client}->{json}->encode($args{$k});
}
else {
$args{$k} = '"' . $args{$k} . '"';
Expand Down

0 comments on commit 91172ac

Please sign in to comment.