Skip to content

Commit f387f39

Browse files
authored
Set Authorization header correctly in Bearer Signer (#4273)
1 parent ad6ee5e commit f387f39

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "Signer",
4+
"description": "Set Authorization header correctly in Bearer Signer"
5+
}

lib/signers/bearer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ AWS.Signers.Bearer = AWS.util.inherit(AWS.Signers.RequestSigner, {
99
},
1010

1111
addAuthorization: function addAuthorization(token) {
12-
this.request.httpRequest.headers['Authorization'] = 'Bearer ' + token.token;
12+
this.request.headers['Authorization'] = 'Bearer ' + token.token;
1313
}
1414
});

0 commit comments

Comments
 (0)