diff --git a/lib/routes/attachments.js b/lib/routes/attachments.js index 28ca5a1..2546a56 100644 --- a/lib/routes/attachments.js +++ b/lib/routes/attachments.js @@ -51,7 +51,7 @@ function getAttachment(name, req, res) { var type = info._attachments[attachment].content_type; var md5 = info._attachments[attachment].digest.slice(4); - req.db.getAttachment(name, attachment, function (err, response) { + req.db.getAttachment(name, attachment, opts, function (err, response) { if (err) return utils.sendError(res, err); res.setHeader('Content-Type', type); res.status(200).send(response);