From 582f85c3ba58749d37db4006c688e3927eeb1640 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Fri, 16 Sep 2022 04:47:42 +0100 Subject: [PATCH] update http status --- common/notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/notify.go b/common/notify.go index 82d3394..a5cee48 100644 --- a/common/notify.go +++ b/common/notify.go @@ -36,7 +36,7 @@ func (n *notifyService) SendNotify(path string, message map[string]interface{}) return err } - if response.StatusCode != http.StatusCreated { + if response.StatusCode != http.StatusOK { return errors.New("failed to send notify (status code: " + fmt.Sprint(response.StatusCode) + ")") } return nil @@ -58,7 +58,7 @@ func (n *notifyService) SendSystemStatusNotify(message map[string]interface{}) e return err } - if response.StatusCode != http.StatusCreated { + if response.StatusCode != http.StatusOK { return errors.New("failed to send notify (status code: " + fmt.Sprint(response.StatusCode) + ")") } return nil