add default icon.png
This commit is contained in:
parent
6ada675630
commit
be5b1ae987
|
@ -2,6 +2,8 @@ changelog
|
||||||
|
|
||||||
=== next
|
=== next
|
||||||
|
|
||||||
|
+ Add a default icon.png.
|
||||||
|
|
||||||
+ Try to fix hoot again because Twitter did a Twitter.
|
+ Try to fix hoot again because Twitter did a Twitter.
|
||||||
|
|
||||||
=== 0.9.8 Tentative Tentacle
|
=== 0.9.8 Tentative Tentacle
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 912 B |
3
web.go
3
web.go
|
@ -2120,6 +2120,9 @@ func serveviewasset(w http.ResponseWriter, r *http.Request) {
|
||||||
serveasset(w, r, viewDir)
|
serveasset(w, r, viewDir)
|
||||||
}
|
}
|
||||||
func servedataasset(w http.ResponseWriter, r *http.Request) {
|
func servedataasset(w http.ResponseWriter, r *http.Request) {
|
||||||
|
if r.URL.Path == "/favicon.ico" {
|
||||||
|
r.URL.Path = "/icon.png"
|
||||||
|
}
|
||||||
serveasset(w, r, dataDir)
|
serveasset(w, r, dataDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue