Comparing version 1.3.5 to 1.3.8
@@ -114,3 +114,3 @@ /* minimal couch in node | ||
} | ||
if(opts.encoding && callback) { | ||
if(opts.encoding !== undefined && callback) { | ||
req.encoding = opts.encoding; | ||
@@ -541,3 +541,3 @@ delete req.headers["content-type"]; | ||
return relax({ db: db_name, att: att_name, method: "GET", doc: doc_name | ||
, params: params, encoding: "binary"},callback); | ||
, params: params, encoding: null},callback); | ||
} | ||
@@ -544,0 +544,0 @@ |
@@ -5,3 +5,3 @@ { "name" : "nano" | ||
, "repository" : "git://github.com/dscape/nano" | ||
, "version" : "1.3.5" | ||
, "version" : "1.3.8" | ||
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)" | ||
@@ -8,0 +8,0 @@ , "contributors" : |
@@ -108,2 +108,3 @@ # nano | ||
`db.list(params*,callback*)` | ||
`db.fetch(doc_names,params*,callback*)` | ||
`db.view(design_name,view_name,params*,callback*)` | ||
@@ -110,0 +111,0 @@ `db.attachment.insert(doc_name,att_name,att,content_type,params*,callback*)` |
@@ -78,3 +78,3 @@ module.exports = function() { | ||
tried.tried += 1; | ||
if(e) { return tests.recursive_create_view(tried,callback); } | ||
if(e) { return user_find(view,id,opts,tried,callback); } | ||
b.views[view] = current_view; | ||
@@ -81,0 +81,0 @@ users.insert(b, '_design/users', function (e,b,h) { |
@@ -67,5 +67,6 @@ var ensure = require('ensure') | ||
this.t.equal(from_buffer, pixel, 'Buffer is pixel'); | ||
this.t.equal(b.toString("base64"), pixel, 'Result buffer is pixel'); | ||
this.t.ok(couch.isDone(), 'Nock is done'); | ||
}; | ||
ensure(__filename,tests,module,process.argv[2]); | ||
ensure(__filename,tests,module,process.argv[2]); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126822
45
2828
215