diff --git a/utils/recording.go b/utils/recording.go index 8586096..ac7695d 100644 --- a/utils/recording.go +++ b/utils/recording.go @@ -19,8 +19,9 @@ func PushRecording(data string) { } recording := []byte(`{"spendy_host":"` + hostname + `","data":"` + data + `"}`) + var url string = RecordingUrl + "/recording/" + hostname - r, err := http.NewRequest("POST", RecordingUrl, bytes.NewBuffer(recording)) + r, err := http.NewRequest("POST", url, bytes.NewBuffer(recording)) if err != nil { log.Println(err) }