Skip to content

Commit

Permalink
(pouchdb/pouchdb#3872) - fix getAttachment with rev
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored and daleharvey committed May 27, 2015
1 parent d1c8f78 commit 5ddac5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ddac5f

Please sign in to comment.