new line \n causing issues
Closed this issue · 6 comments
shenanigan commented
In the parser.js line 101 shouldn't the new line character be escaped?
Something like
signatureParams.signingString += '\\n';
Without this I am always getting Bad signature for multiple headers. Everything works okay for 1 header
arkerone commented
How did you build your signature?
shenanigan commented
I used a couple of online tools to verify this:
arkerone commented
I don't know why this websites have a problem to hash multiline string. Use this website : https://codebeautify.org/hmac-generator
arkerone commented
Ok this websites use the CF (0d) and LF (0a) for new line but we need only the LF (0a) represented by '\n'
shenanigan commented
Okay, Thanks will check it out and let you know.
shenanigan commented
It is working as per the website you pointed out.