Skip to content

Commit

Permalink
Merge pull request #15 from Labbs/fix-push-url-recording
Browse files Browse the repository at this point in the history
fix url recording path
  • Loading branch information
moutonjeremy authored Oct 17, 2023
2 parents 1f681a9 + 735a925 commit fab8d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fab8d34

Please sign in to comment.