Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e802c4fec |
@@ -1,3 +1,10 @@
|
||||
# v3.1.1
|
||||
|
||||
## What's Changed
|
||||
|
||||
* Fixed crash caused by concurrent writes under high load ([#684](https://github.com/selfhst/icons/issues/684))
|
||||
* Suppress favicon error log message when viewing icons directly from a browser
|
||||
|
||||
# v3.1.0
|
||||
|
||||
## What's Changed
|
||||
|
||||
@@ -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