Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
fixed content_type mistake in insertMultipart
Browse files Browse the repository at this point in the history
The previous code was looking for the wrong property name (contentType) in the attachments array in insertMultipart. It should be content_type.
  • Loading branch information
jandrieu committed Jan 16, 2015
1 parent ebacf34 commit 502fc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nano.js
Expand Up @@ -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});
});
Expand Down

0 comments on commit 502fc64

Please sign in to comment.