-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature to allow override on timestamp and signature #295
Add feature to allow override on timestamp and signature #295
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leptians Can you please add a test that verifies that when the user adds a signature then it is used regardless of other parameters
b94ae83
to
39cb8ba
Compare
@strausr , let's review and make sure it goes into the next version |
@@ -1063,6 +1063,8 @@ function process_request_params(params, options) { | |||
if (options.unsigned != null && options.unsigned) { | |||
params = exports.clear_blank(params); | |||
delete params.timestamp; | |||
} else if (options.signature ) { | |||
params = exports.clear_blank(options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain what clear_blank is being used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the same practice the same as from line#1064
105cc07
to
a5334a6
Compare
To allow override on timestamp and signature on API call level