debug
This commit is contained in:
parent
d0852f5d3a
commit
4f5b0f3f9a
|
@ -3,6 +3,7 @@ package onpoint
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -221,6 +222,8 @@ func (c *Client) requestHttpViaNats(data model.CommunicationRequestHttp, res int
|
|||
ts,
|
||||
}
|
||||
s := strings.Join(arr, ".")
|
||||
log.Println("DEBUG: onpoint. secret_message:", s)
|
||||
log.Println("DEBUG: onpoint. secret_key:", c.secretKey)
|
||||
// sign data
|
||||
sign := hashSHA256AndUppercase(s, c.secretKey)
|
||||
data.Payload.Header = map[string]string{
|
||||
|
|
Loading…
Reference in New Issue