mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fixing notification method
This commit is contained in:
parent
aae3104457
commit
06e19fe58c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user