stringify before sign

pull/44/head
unknown 2019-03-06 11:49:25 -05:00
parent a40a42af45
commit ed16af3eef
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ async function sendUpdatesAsync (id) {
url: url,
headers: {
'User-Agent': 'RoE-aggregator',
'X-RoE-Signature': hmacSign(user.signing_secret, timestamp, content),
'X-RoE-Signature': hmacSign(user.signing_secret, timestamp, JSON.stringify(content)),
'X-RoE-Request-Timestamp': timestamp
},
body: content,