diff --git a/src/build.js b/src/build.js index 9f72abf..74dec15 100644 --- a/src/build.js +++ b/src/build.js @@ -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; }