Browse files

Enable to convert to JSON

  • Loading branch information...
1 parent 56a1a30 commit db22324da5bd07bc7e4f42a6ef9cdc95834c79f6 @pimvdb pimvdb committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/couchdb.js
View
2 lib/couchdb.js
@@ -77,7 +77,7 @@ exports.toJSON = function(data) {
// Encode only key, startkey and endkey as JSON
exports.toQuery = function(query) {
for (var k in query) {
- if (['key', 'startkey', 'endkey'].indexOf(k) != -1) {
+ if (['key', 'keys', 'startkey', 'endkey'].indexOf(k) != -1) {
query[k] = JSON.stringify(query[k]);
} else {
query[k] = String(query[k]);

0 comments on commit db22324

Please sign in to comment.