Redo router and use chi, implement anchor file
This commit is contained in:
@@ -66,7 +66,7 @@ func NewHTTPClient(token string, maxRetries int, timeoutSecs int, cfg config.Con
|
||||
if resp.StatusCode == 429 {
|
||||
return 1
|
||||
}
|
||||
if resp.StatusCode != http.StatusPartialContent && hasRangeHeader {
|
||||
if resp.StatusCode == http.StatusOK && hasRangeHeader {
|
||||
return 1
|
||||
}
|
||||
return 0 // don't retry
|
||||
|
||||
Reference in New Issue
Block a user