generating html from 12 feeds works

This commit is contained in:
Thomas Koch 2025-01-10 20:17:06 +02:00
parent b422ece932
commit 3bee93ecb3
7 changed files with 165 additions and 41 deletions

View file

@ -37,10 +37,10 @@ impl Fetcher {
.agent
.get(url.to_string())
.header("FROM", self.from.clone());
if fetchdata.etag != "" {
if !fetchdata.etag.is_empty() {
builder = builder.header("If-None-Match", fetchdata.etag);
}
if fetchdata.date != "" {
if !fetchdata.date.is_empty() {
builder = builder.header("If-Modified-Since", fetchdata.date);
}