diff --git a/internal/reader/fetcher/response_handler.go b/internal/reader/fetcher/response_handler.go index 2f38b8e4b23..e5d6a5a17e9 100644 --- a/internal/reader/fetcher/response_handler.go +++ b/internal/reader/fetcher/response_handler.go @@ -70,7 +70,7 @@ func (r *ResponseHandler) ParseRetryDelay() int { } func (r *ResponseHandler) IsRateLimited() bool { - return r.httpResponse.StatusCode == http.StatusTooManyRequests + return r.httpResponse != nil && r.httpResponse.StatusCode == http.StatusTooManyRequests } func (r *ResponseHandler) IsModified(lastEtagValue, lastModifiedValue string) bool {