Permalink
Browse files

[minor] Avoid using deprecated Buffer API

  • Loading branch information...
lpinca committed Mar 21, 2018
1 parent 90f1ff3 commit 8c1d57ceb92a80fcf4897c599c0200d082426ce5
Showing with 1 addition and 1 deletion.
  1. +1 −1 middleware/primus.js
View
@@ -27,7 +27,7 @@ module.exports = function configure() {
// add plugins or we will compile the client library without plugins, which
// is sad :(
//
library = library || new Buffer(primus.library());
library = library || Buffer.from(primus.library());
length = length || library.length;
res.statusCode = 200;

0 comments on commit 8c1d57c

Please sign in to comment.