fixing notification method

This commit is contained in:
Roland Osborne 2022-11-15 10:26:12 -08:00
parent aae3104457
commit 06e19fe58c

View File

@ -109,7 +109,7 @@ func sendRemoteNotification(notification *store.Notification) {
return
}
url := "https://" + notification.Node + "/contact/" + module + "?contact=" + notification.GUID + "." + notification.Token
req, err := http.NewRequest(http.MethodPut, url, bytes.NewBuffer(body))
req, err := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(body))
if err != nil {
ErrMsg(err)
return
@ -130,7 +130,7 @@ func sendRemoteNotification(notification *store.Notification) {
return
}
url := "https://" + notification.Node + "/contact/" + module + "?contact=" + notification.GUID + "." + notification.Token
req, err := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(body))
req, err := http.NewRequest(http.MethodPut, url, bytes.NewBuffer(body))
if err != nil {
ErrMsg(err)
return