add default icon.png
This commit is contained in:
parent
6ada675630
commit
be5b1ae987
3 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,8 @@ changelog
|
|||
|
||||
=== next
|
||||
|
||||
+ Add a default icon.png.
|
||||
|
||||
+ Try to fix hoot again because Twitter did a Twitter.
|
||||
|
||||
=== 0.9.8 Tentative Tentacle
|
||||
|
|
BIN
views/icon.png
Normal file
BIN
views/icon.png
Normal file
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)
|
||||
}
|
||||
func servedataasset(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/favicon.ico" {
|
||||
r.URL.Path = "/icon.png"
|
||||
}
|
||||
serveasset(w, r, dataDir)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue