Skip to content

Commit

Permalink
more 5xx retry cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jul 21, 2024
1 parent 9d8752c commit 7be397c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (p *Part) download(client *http.Client, location string, single bool, timeo
} else {
bar.SetCurrent(0)
}
case http.StatusInternalServerError, http.StatusServiceUnavailable:
case http.StatusInternalServerError, http.StatusNotImplemented, http.StatusBadGateway, http.StatusServiceUnavailable, http.StatusGatewayTimeout:
fmt.Fprintf(p.progress, "%s%s\n", p.dlogger.Prefix(), resp.Status)
return true, HttpError(resp.StatusCode)
default:
Expand Down

0 comments on commit 7be397c

Please sign in to comment.