Comparing version 0.5.6 to 0.5.7
@@ -85,2 +85,5 @@ /* minimal couch in node | ||
if(opts.content_type) { req.headers["content-type"] = opts.content_type; } | ||
if(opts.encoding) { req.encoding = opts.encoding; } | ||
req.uri = url + (_.isEmpty(params) ? "" : "?" + qs.stringify(params)); | ||
if(!callback) { return request(req); } // void callback, pipe | ||
if(opts.body) { | ||
@@ -92,5 +95,2 @@ if (Buffer.isBuffer(opts.body)) { | ||
} | ||
if(opts.encoding) { req.encoding = opts.encoding; } | ||
req.uri = url + (_.isEmpty(params) ? "" : "?" + qs.stringify(params)); | ||
if(!callback) { return request(req); } // void callback | ||
request(req, function(e,h,b){ | ||
@@ -97,0 +97,0 @@ if(e) { return callback(error.request_err(e,"socket",req,status_code),{},b); } |
{ "name": "nano" | ||
, "description": "minimalistic couchdb driver for node.js" | ||
, "homepage": "http://github.com/dscape/nano" | ||
, "version": "0.5.6" | ||
, "version": "0.5.7" | ||
, "author": "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)" | ||
@@ -6,0 +6,0 @@ , "keywords": ["couchdb", "data", "request", "json", "nosql", "micro", "nano"] |
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
51808