diff --git a/lib/index.js b/lib/index.js index ea67db9..3c1e04c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -192,7 +192,7 @@ function OutBatch() { } OutBatch.prototype.append = function (buf, flags, cb) { - if (!Buffer.isBuffer(buf)) { + if (!Buffer.isBuffer(buf) && !(Uint8Array && buf instanceof Uint8Array)) { buf = new Buffer(String(buf), 'utf8'); }