Skip to content

Commit

Permalink
fix(gau): fix httpclient retries. i'm an idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed Apr 20, 2022
1 parent d1c5e72 commit 125148b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ func MakeRequest(c *fasthttp.Client, url string, maxRetries uint, timeout uint,
if resp.StatusCode() == 503 {
continue
}
}

goto done
}
done:
if resp.StatusCode() != 200 {
return nil, ErrNon200Response
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/valyala/fasthttp"
)

const Version = `2.1.0`
const Version = `2.1.1`

// Provider is a generic interface for all archive fetchers
type Provider interface {
Expand Down

0 comments on commit 125148b

Please sign in to comment.