Skip to content

Commit

Permalink
feat(retry): 429 responses should be retried
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Apr 11, 2016
1 parent 8b1ff6a commit f952b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var Evaluator = func(err error, res *http.Response, req *http.Request) error {
if err != nil {
return err
}
if res.StatusCode >= 500 {
if res.StatusCode >= 500 || res.StatusCode == 429 {
return ErrServer
}
return nil
Expand Down

0 comments on commit f952b3a

Please sign in to comment.