mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
fix: avoid panic in IsRateLimited()
function
This commit is contained in:
parent
ee8c6621e9
commit
5c4df786de
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func (r *ResponseHandler) ParseRetryDelay() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ResponseHandler) IsRateLimited() bool {
|
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 {
|
func (r *ResponseHandler) IsModified(lastEtagValue, lastModifiedValue string) bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue