CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
update http status
LinkLeong80c347ac0186
diff --git a/common/notify.go b/common/notify.goindex 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{}) ereturn 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