behavior changes: UserAgent configurable, test cookies, check errors

This commit is contained in:
2024-01-24 19:19:31 +01:00
committed by T.v.Dein
parent 8df3ebfa6d
commit 9cd1fc0596
8 changed files with 77 additions and 26 deletions

View File

@@ -113,7 +113,10 @@ func Main(w io.Writer) int {
}
// used for all HTTP requests
fetch := NewFetcher(conf)
fetch, err := NewFetcher(conf)
if err != nil {
return Die(err)
}
// randomization needed here and there
rand.Seed(time.Now().UnixNano())