From 06e19fe58c2b5cd1ac72cc3f0f317aa15928a791 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Tue, 15 Nov 2022 10:26:12 -0800 Subject: [PATCH] fixing notification method --- net/server/internal/notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/server/internal/notify.go b/net/server/internal/notify.go index b116f10e..2b01051a 100644 --- a/net/server/internal/notify.go +++ b/net/server/internal/notify.go @@ -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