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