Skip to content

Commit

Permalink
support icons older than the feed
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jan 2, 2024
1 parent 5279b77 commit 85ed199
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/reader/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,16 @@ func RefreshFeed(store *storage.Storage, userID, feedID int64, forceRefresh bool
)
}

// new request without LastTimeout or ETag to allow for icons that are older than the feed
requestBuilder = fetcher.NewRequestBuilder()
requestBuilder.WithUsernameAndPassword(originalFeed.Username, originalFeed.Password)
requestBuilder.WithUserAgent(originalFeed.UserAgent, config.Opts.HTTPClientUserAgent())
requestBuilder.WithCookie(originalFeed.Cookie)
requestBuilder.WithETag(originalFeed.EtagHeader)
requestBuilder.WithProxy(config.Opts.HTTPClientProxy())
requestBuilder.UseProxy(originalFeed.FetchViaProxy)
requestBuilder.IgnoreTLSErrors(originalFeed.AllowSelfSignedCertificates)

checkFeedIcon(
store,
requestBuilder,
Expand Down

0 comments on commit 85ed199

Please sign in to comment.