1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Add content length check when refreshing feeds

This commit is contained in:
Frédéric Guillot 2018-01-04 18:32:36 -08:00
parent c57cafbef2
commit 7d278d49f1
8 changed files with 43 additions and 23 deletions

View file

@ -13,12 +13,13 @@ import (
// Response wraps a server response.
type Response struct {
Body io.Reader
StatusCode int
EffectiveURL string
LastModified string
ETag string
ContentType string
Body io.Reader
StatusCode int
EffectiveURL string
LastModified string
ETag string
ContentType string
ContentLength int64
}
// HasServerFailure returns true if the status code represents a failure.