Skip to content

Commit

Permalink
woo: update signature
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Dec 14, 2022
1 parent f7d1633 commit f9d575c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/woo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1853,15 +1853,15 @@ module.exports = class woo extends Exchange {
this.checkRequiredCredentials ();
let auth = '';
const ts = this.nonce ().toString ();
url += path;
url += pathWithParams;
headers = {
'x-api-key': this.apiKey,
'x-api-timestamp': ts,
};
if (version === 'v3' && (method === 'POST' || method === 'PUT' || method === 'DELETE')) {
auth = this.json (params);
body = auth;
auth = ts + method + '/' + version + '/' + path + body;
auth = ts + method + '/' + version + '/' + pathWithParams + body;
headers['content-type'] = 'application/json';
} else {
auth = this.urlencode (params);
Expand Down

0 comments on commit f9d575c

Please sign in to comment.