]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - fetch.go
nsscash: force UTC timezone for If-Modified-Since header
[nsscash/nsscash.git] / fetch.go
index ba1bbc8f4bde2019503102a1100ea1cf01bcc0a0..491720a88786d0c363bc612048a6ce0e1f6b98b5 100644 (file)
--- a/fetch.go
+++ b/fetch.go
@@ -43,7 +43,7 @@ func fetchIfModified(url, ca string, lastModified *time.Time) (int, []byte, erro
        }
        if !lastModified.IsZero() {
                req.Header.Add("If-Modified-Since",
-                       lastModified.Format(http.TimeFormat))
+                       lastModified.UTC().Format(http.TimeFormat))
        }
 
        client, ok := clients[ca]