Skip to content

Commit

Permalink
Merge pull request #1035 from noobaa/evgb-BucketKeysAdd
Browse files Browse the repository at this point in the history
Evgb BucketKeysAdd
  • Loading branch information
jeniawhite committed Apr 11, 2016
2 parents d70751c + 25c888b commit 757f6c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/s3/s3_rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ function s3_rest(controller) {
let v4info = {};
v4info.xamzdate = req.headers['x-amz-date'];
//console.warn('v4info.xamzdate: ', v4info.xamzdate);
v4info.signedheaders = req.headers.authorization.substring(req.headers.authorization.indexOf('SignedHeaders') + 14,
req.headers.authorization.indexOf('Signature') - 2);
var signedheaders_substring = req.headers.authorization.substring(req.headers.authorization.indexOf('SignedHeaders') + 14,
req.headers.authorization.length);
v4info.signedheaders = signedheaders_substring.substring(0, signedheaders_substring.indexOf(','));
//console.warn('v4info.signedheaders: ', v4info.signedheaders);
//authorization: 'AWS4-HMAC-SHA256 Credential=wwwwwwwwwwwww123aaaa/20151023/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=0b04a57def200559b3353551f95bce0712e378c703a97d58e13a6eef41a20877',
/*let credentials_location = req.headers.authorization.indexOf('Credential') + 11;
Expand Down

0 comments on commit 757f6c4

Please sign in to comment.