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 3e4c65a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/reader/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,15 @@ 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.WithProxy(config.Opts.HTTPClientProxy())
requestBuilder.UseProxy(originalFeed.FetchViaProxy)
requestBuilder.IgnoreTLSErrors(originalFeed.AllowSelfSignedCertificates)

checkFeedIcon(
store,
requestBuilder,
Expand Down

0 comments on commit 3e4c65a

Please sign in to comment.