Skip to content

Request body should allow Buffer object #146

@aleclarson

Description

@aleclarson

…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

function hash(string, encoding) {
return crypto.createHash('sha256').update(string, 'utf8').digest(encoding)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions