Open anton-107 opened 13 years ago
Example request: databaseClient.request("PUT", designName, designDoc, function(err, data) {} );
Design doc contains functions and they are cut off internally by JSON.stringify. Please, enhance this line:
body = JSON.stringify(body)
with this snippet:
body = JSON.stringify(body, function(key, val) { if (typeof val == 'function') { return val.toString(); } return val; });
Example request: databaseClient.request("PUT", designName, designDoc, function(err, data) {} );
Design doc contains functions and they are cut off internally by JSON.stringify. Please, enhance this line:
with this snippet: