Skip to content

Commit

Permalink
Fix Buffer() is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <xuanwo@yunify.com>
  • Loading branch information
Xuanwo committed Sep 25, 2018
1 parent 8f37e19 commit a8a8391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Builder {
if (operation.api === 'DeleteMultipleObjects') {
let h = createHash('md5');
h.update(this.parseRequestBody(operation));
parsedHeaders['Content-MD5'] = new Buffer(h.digest()).toString('base64')
parsedHeaders['Content-MD5'] = Buffer.from(h.digest()).toString('base64')
}
return parsedHeaders;
}
Expand Down

0 comments on commit a8a8391

Please sign in to comment.