v3.1.1 (Fix concurrent writes crash)

This commit is contained in:
selfhst-bot
2026-02-02 05:36:50 -05:00
parent 52c034d7bf
commit ab934436a5
48 changed files with 19 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)