Skip to content

Commit

Permalink
Work better with react-native < 0.57 (#1719)
Browse files Browse the repository at this point in the history
Fixes #750
  • Loading branch information
paulmand3l authored and elorzafe committed Sep 22, 2018
1 parent 6aceded commit 64d695f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ const signUrl = function(urlToSign: String, accessInfo: any, serviceInfo?: any,
'X-Amz-Algorithm': DEFAULT_ALGORITHM,
'X-Amz-Credential': [accessInfo.access_key, credentialScope].join('/'),
'X-Amz-Date': now.substr(0, 16),
...(sessionTokenRequired && { 'X-Amz-Security-Token': `${accessInfo.session_token}` }),
...(expiration && { 'X-Amz-Expires': `${expiration}` }),
...(sessionTokenRequired ? { 'X-Amz-Security-Token': `${accessInfo.session_token}` } : {}),
...(expiration ? { 'X-Amz-Expires': `${expiration}` } : {}),
'X-Amz-SignedHeaders': Object.keys(signedHeaders).join(','),
};

Expand Down

0 comments on commit 64d695f

Please sign in to comment.