Skip to content

Commit

Permalink
feat: edit notify
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Jan 26, 2022
1 parent be4ad75 commit 9ad736f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notify/notify_discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func SendNotifyDiscord(webhook, content string) error {
resp, _, errs := gorequest.New().Post(webhook).SendStruct(&data).Timeout(time.Second * 10).End()
if len(errs) > 0 {
return fmt.Errorf("errs:%v", errs)
} else if resp.StatusCode != http.StatusOK {
} else if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
return fmt.Errorf("http code:%d", resp.StatusCode)
}
return nil
Expand Down

0 comments on commit 9ad736f

Please sign in to comment.