Redo router and use chi, implement anchor file

This commit is contained in:
Ben Sarmiento
2024-01-08 21:13:35 +01:00
parent 122eea2374
commit 96e41d6cbc
11 changed files with 352 additions and 295 deletions

View File

@@ -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