Skip to content

Commit

Permalink
buffer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stockulus committed Sep 9, 2016
1 parent aefe1c3 commit 884ac76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function (db, docId, attachId, attachment, opts, callback) {

callback(null,
opts.binary
? global.Buffer.alloc(11, data.data, 'base64')
? global.Buffer.from(data.data, 'base64')
: data.data
)
})
Expand Down

0 comments on commit 884ac76

Please sign in to comment.