Skip to content

Commit

Permalink
fix: rtml generate url (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
binghaiwang authored May 8, 2018
1 parent 3bf1be7 commit 53f1f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/browser/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Client.Wrapper = require('./wrapper');
proto.signature = function signature(stringToSign) {
debug('authorization stringToSign: %s', stringToSign);

return signUtils.authorization(this.options.accessKeyId, this.options.accessKeySecret, stringToSign);
return signUtils.computeSignature(this.options.accessKeySecret, stringToSign);
};

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ proto.authorization = function authorization(method, resource, subres, headers)
parameters: subres,
});

return this.signature(stringToSign);
return signUtils.authorization(this.options.accessKeyId, this.options.accessKeySecret, stringToSign);
};

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Client.Wrapper = require('./wrapper');
proto.signature = function signature(stringToSign) {
debug('authorization stringToSign: %s', stringToSign);

return signUtils.authorization(this.options.accessKeyId, this.options.accessKeySecret, stringToSign);
return signUtils.computeSignature(this.options.accessKeySecret, stringToSign);
};

/**
Expand Down Expand Up @@ -204,7 +204,7 @@ proto.authorization = function authorization(method, resource, subres, headers)
parameters: subres,
});

return this.signature(stringToSign);
return signUtils.authorization(this.options.accessKeyId, this.options.accessKeySecret, stringToSign);
};

/**
Expand Down

0 comments on commit 53f1f0c

Please sign in to comment.