1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00

Utils: Fix #25

This commit is contained in:
mavolin 2020-05-07 18:36:15 +02:00
parent 73ba62605b
commit c7a392f836
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

View file

@ -7,6 +7,7 @@ import (
"context" "context"
"io" "io"
"mime/multipart" "mime/multipart"
"net/http"
"github.com/diamondburned/arikawa/utils/httputil/httpdriver" "github.com/diamondburned/arikawa/utils/httputil/httpdriver"
"github.com/diamondburned/arikawa/utils/json" "github.com/diamondburned/arikawa/utils/json"
@ -179,7 +180,7 @@ func (c *Client) Request(method, url string, opts ...RequestOption) (httpdriver.
continue continue
} }
if status = r.GetStatus(); status < 200 || status > 299 { if status = r.GetStatus(); status == http.StatusTooManyRequests || status >= 500 {
continue continue
} }