Skip to content

Commit

Permalink
Switch Buffer to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Jul 16, 2019
1 parent db876e6 commit 105c853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var util = require('util'),
pkg = require('../package.json');

function encodeClientInfo(obj) {
return new Buffer(JSON.stringify(obj)).toString('base64');
return Buffer.from(JSON.stringify(obj)).toString('base64');
}

var clientInfoHeader = encodeClientInfo({
Expand Down

0 comments on commit 105c853

Please sign in to comment.