Skip to content

Commit fab8d34

Browse files
authored
Merge pull request #15 from Labbs/fix-push-url-recording
fix url recording path
2 parents 1f681a9 + 735a925 commit fab8d34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/recording.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ func PushRecording(data string) {
1919
}
2020

2121
recording := []byte(`{"spendy_host":"` + hostname + `","data":"` + data + `"}`)
22+
var url string = RecordingUrl + "/recording/" + hostname
2223

23-
r, err := http.NewRequest("POST", RecordingUrl, bytes.NewBuffer(recording))
24+
r, err := http.NewRequest("POST", url, bytes.NewBuffer(recording))
2425
if err != nil {
2526
log.Println(err)
2627
}

0 commit comments

Comments
 (0)