Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/image-handler/image-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ImageRequest {
if (path !== undefined) {
const splitPath = path.split("/");
const encoded = splitPath[splitPath.length - 1];
const toBuffer = new Buffer(encoded, 'base64');
const toBuffer = Buffer.from(encoded, 'base64');
try {
return JSON.parse(toBuffer.toString('ascii'));
} catch (e) {
Expand Down Expand Up @@ -235,4 +235,4 @@ class ImageRequest {
}

// Exports
module.exports = ImageRequest;
module.exports = ImageRequest;