Skip to content

Commit

Permalink
fixed include_docs check that was too truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
rhino-security committed Feb 1, 2010
1 parent 3f1c0aa commit 2fac1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchdb/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2fac1b3

Please sign in to comment.