Add /favicon.ico route
This commit is contained in:
parent
d40803f165
commit
1e1c8caa53
|
@ -35,6 +35,10 @@ func staticHandler(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||
notFoundHandler(c, w, r)
|
||||
return
|
||||
} else {
|
||||
if path == "/favicon.ico" {
|
||||
path = "/static/images/favicon.gif"
|
||||
}
|
||||
|
||||
filePath := strings.TrimPrefix(path, "/static/")
|
||||
file, err := staticBox.Open(filePath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue