You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://nodejs.org/api/crypto.html#hashupdatedata-inputencoding, hash.update() will ignore the given encoding ('utf8' here) when the given data (string here) is already a Buffer. So maybe it already admits body as a Buffer? Admittedly, I haven't tested this.
…and it shouldn't assume UTF8 encoding.
Currently, when calculating the content hash, UTF8 encoding is assumed:
aws4/aws4.js
Lines 14 to 15 in a413aad
The text was updated successfully, but these errors were encountered: