mirror of
https://github.com/balzack/databag.git
synced 2025-02-15 04:59:16 +00:00
fixing notification method
This commit is contained in:
parent
aae3104457
commit
06e19fe58c
@ -109,7 +109,7 @@ func sendRemoteNotification(notification *store.Notification) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
url := "https://" + notification.Node + "/contact/" + module + "?contact=" + notification.GUID + "." + notification.Token
|
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 {
|
if err != nil {
|
||||||
ErrMsg(err)
|
ErrMsg(err)
|
||||||
return
|
return
|
||||||
@ -130,7 +130,7 @@ func sendRemoteNotification(notification *store.Notification) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
url := "https://" + notification.Node + "/contact/" + module + "?contact=" + notification.GUID + "." + notification.Token
|
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 {
|
if err != nil {
|
||||||
ErrMsg(err)
|
ErrMsg(err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user