diff options
Diffstat (limited to 'web/discordwebhook')
| -rw-r--r-- | web/discordwebhook/webhook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/discordwebhook/webhook.go b/web/discordwebhook/webhook.go index 6cbe6d1..91df381 100644 --- a/web/discordwebhook/webhook.go +++ b/web/discordwebhook/webhook.go @@ -59,7 +59,7 @@ func Send(whurl string, w Webhook) *http.Request { // Validate validates the response from Discord. func Validate(resp *http.Response) error { - if resp.StatusCode/100 != 2 { + if resp.StatusCode != http.StatusOK { return web.NewError(http.StatusOK, resp) } |
