Permalink
Browse files

fixed include_docs check that was too truthy

  • Loading branch information...
1 parent 3f1c0aa commit 2fac1b3ce1db412684a23f17b94697824b4e53af @rhino-security rhino-security committed Feb 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/couchdb/database.js
@@ -12,7 +12,7 @@ var Database = {
var results = [];
options = options || {};
- options.include_docs = options.include_docs || true;
+ options.include_docs = typeof options.include_docs === "undefined" ? false : options.include_docs;
this.httpClient.get(this.uri + encodeURIComponent("_all_docs") + encodeOptions(options), {
async: false,

0 comments on commit 2fac1b3

Please sign in to comment.