Update version to v3.1.1 (Fix concurrent writes crash)
This commit is contained in:
@@ -1 +1 @@
|
||||
3.1.0
|
||||
3.1.1
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user