diff --git a/main.go b/main.go index ad3b81f..369a0a3 100644 --- a/main.go +++ b/main.go @@ -117,6 +117,16 @@ func LoadMatrixData() (string, int, int) { } func SendRequest(client *resty.Client, url string, ins []interface{}) { + // Manually marshal instructions + marshal, err := json.Marshal(ins) + if err != nil { + log.Fatal(err) + return + } + + // Debug log json data + log.Printf("Request: %s\n", string(marshal)) + // Build and send request resp, err := client.R(). SetHeader("Content-Type", "application/json").