|
@@ -124,8 +124,10 @@ namespace EVCB_OCPP.TaskScheduler
|
|
|
{
|
|
|
var _body = requestBody == null ? "" : requestBody;
|
|
|
headers.Add("Timestamp", DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString());
|
|
|
- string signature = GetSignature(GetUnencodeText(url, _body, headers["Timestamp"], headers["PartnerId"], saltkey));
|
|
|
+ var rawSignature = GetUnencodeText(url, _body, headers["Timestamp"], headers["PartnerId"], saltkey);
|
|
|
+ string signature = GetSignature(rawSignature);
|
|
|
headers.Add("Signature", signature);
|
|
|
+ logger.Debug("rawSignature: {0}; Signature: {1}", rawSignature, signature);
|
|
|
|
|
|
return _body;
|
|
|
}
|