Skip to content

Commit 125148b

Browse files
committed
fix(gau): fix httpclient retries. i'm an idiot
1 parent d1c5e72 commit 125148b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/httpclient/client.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ func MakeRequest(c *fasthttp.Client, url string, maxRetries uint, timeout uint,
5151
if resp.StatusCode() == 503 {
5252
continue
5353
}
54-
}
5554

55+
goto done
56+
}
57+
done:
5658
if resp.StatusCode() != 200 {
5759
return nil, ErrNon200Response
5860
}

pkg/providers/providers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/valyala/fasthttp"
66
)
77

8-
const Version = `2.1.0`
8+
const Version = `2.1.1`
99

1010
// Provider is a generic interface for all archive fetchers
1111
type Provider interface {

0 commit comments

Comments
 (0)