fixed content_type mistake in insertMultipart The previous code was looking for the wrong property name (contentType) in the attachments array in insertMultipart. It should be content_type.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-nano/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-nano/commit/502fc64e Tree: http://git-wip-us.apache.org/repos/asf/couchdb-nano/tree/502fc64e Diff: http://git-wip-us.apache.org/repos/asf/couchdb-nano/diff/502fc64e Branch: refs/heads/master Commit: 502fc64e7eaef3f1b48380290dd46377c7b11464 Parents: ebacf34 Author: Joe Andrieu <j...@andrieu.net> Authored: Fri Jan 16 07:57:43 2015 -0800 Committer: Joe Andrieu <j...@andrieu.net> Committed: Fri Jan 16 07:57:43 2015 -0800 ---------------------------------------------------------------------- lib/nano.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-nano/blob/502fc64e/lib/nano.js ---------------------------------------------------------------------- diff --git a/lib/nano.js b/lib/nano.js index f780a5e..28942fd 100644 --- a/lib/nano.js +++ b/lib/nano.js @@ -554,7 +554,7 @@ module.exports = exports = nano = function dbScope(cfg) { follows: true, length: Buffer.isBuffer(att.data) ? att.data.length : Buffer.byteLength(att.data), - 'content_type': att.contentType + 'content_type': att.content_type }; multipart.push({body: att.data}); });