mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
fix(finder): do not add redirections to the list of subscriptions to avoid confusion
This commit is contained in:
parent
f5fde36d45
commit
e9520f5d1c
2 changed files with 19 additions and 1 deletions
|
@ -89,6 +89,15 @@ func (r *ResponseHandler) IsModified(lastEtagValue, lastModifiedValue string) bo
|
|||
return true
|
||||
}
|
||||
|
||||
func (r *ResponseHandler) IsRedirect() bool {
|
||||
return r.httpResponse != nil &&
|
||||
(r.httpResponse.StatusCode == http.StatusMovedPermanently ||
|
||||
r.httpResponse.StatusCode == http.StatusFound ||
|
||||
r.httpResponse.StatusCode == http.StatusSeeOther ||
|
||||
r.httpResponse.StatusCode == http.StatusTemporaryRedirect ||
|
||||
r.httpResponse.StatusCode == http.StatusPermanentRedirect)
|
||||
}
|
||||
|
||||
func (r *ResponseHandler) Close() {
|
||||
if r.httpResponse != nil && r.httpResponse.Body != nil && r.clientErr == nil {
|
||||
r.httpResponse.Body.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue