This is not strictly required as lastModified is already stored in UTC
(servers use UTC for the Last-Modified header). However, it's good
practice and prevents copy & past errors in the future. See
d71bfc6
("nsscash: main_test: fix Last-Modified/If-Modified-Since headers",
2019-08-02) for the details.
}
if !lastModified.IsZero() {
req.Header.Add("If-Modified-Since",
- lastModified.Format(http.TimeFormat))
+ lastModified.UTC().Format(http.TimeFormat))
}
client, ok := clients[ca]