generating html from 12 feeds works
This commit is contained in:
parent
0f134ad61b
commit
cd1237cfc6
7 changed files with 165 additions and 41 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue