Comparing version 0.6.2 to 0.6.4
@@ -83,3 +83,5 @@ /* minimal couch in node | ||
var url = cfg.url + "/" + opts.db | ||
, headers = { "content-type": "application/json" } | ||
, headers = { "content-type": "application/json" | ||
, "accept": "application/json" | ||
} | ||
, req = { method: (opts.method || "GET"), headers: headers } | ||
@@ -108,2 +110,4 @@ , params = opts.params | ||
rh['status-code'] = status_code = h.statusCode; | ||
delete rh.server; // prevent security vunerabilities related to couchdb | ||
delete rh["content-length"]; // prevent problems with trims and stalled responses | ||
try { parsed = JSON.parse(b); } catch (err) { parsed = b; } // did we get json or binary? | ||
@@ -110,0 +114,0 @@ if (status_code >= 200 && status_code < 300) { |
{ "name": "nano" | ||
, "description": "minimalistic couchdb driver for node.js" | ||
, "homepage": "http://github.com/dscape/nano" | ||
, "version": "0.6.2" | ||
, "version": "0.6.4" | ||
, "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
56027
1360