1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-15 23:54:17 +02:00

update http status

This commit is contained in:
LinkLeong
2022-09-16 04:47:42 +01:00
committed by Tiger Wang
parent 8113f51cf7
commit 80c347ac01

View File

@ -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