Update version to v3.1.1 (Fix concurrent writes crash)

This commit is contained in:
2026-02-06 22:21:30 +05:30
parent 9540d855e7
commit 9e802c4fec
3 changed files with 13 additions and 2 deletions

View File

@@ -1 +1 @@
3.1.0
3.1.1

View File

@@ -54,7 +54,6 @@ func (c *Cache) Get(key string) (string, bool) {
}
if time.Since(item.Timestamp) > c.ttl {
delete(c.items, key)
return "", false
}
@@ -430,6 +429,11 @@ func main() {
mux.HandleFunc("GET /custom/{filename}", handleCustomIcon)
// Suppress favicon load error message in logs when viewing via browser
mux.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNoContent)
})
mux.HandleFunc("GET /{iconname}/{colorcode}", handleIcon)
mux.HandleFunc("GET /{iconname}", handleIcon)