Skip to content

Commit

Permalink
fix(gau): fix http client retries
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed Nov 15, 2021
1 parent cb0a0b8 commit 0627a13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func MakeRequest(c *fasthttp.Client, url string, maxRetries int, headers ...Head
return nil, ErrNilResponse
}
}
// url responded with 503, so try again
if resp.StatusCode() == 503 {
continue
}
}

if resp.StatusCode() != 200 {
Expand Down

0 comments on commit 0627a13

Please sign in to comment.