Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable to convert to JSON

  • Loading branch information...
commit db22324da5bd07bc7e4f42a6ef9cdc95834c79f6 1 parent 56a1a30
@pimvdb pimvdb authored
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]);
Please sign in to comment.
Something went wrong with that request. Please try again.