Skip to content

Commit

Permalink
Use newer Buffer syntax (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
zslabs authored and pajaydev committed Aug 20, 2019
1 parent b98fd1c commit 5585408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const makeRequest = function postRequest(hostName, endpoint, methodName, data, t


const base64Encode = (encodeData) => {
const buff = new Buffer(encodeData);
const buff = Buffer.from(encodeData);
return buff.toString('base64');
};

Expand Down

0 comments on commit 5585408

Please sign in to comment.