mirror of https://github.com/jlelse/GoBlog
Small fix
This commit is contained in:
parent
61cc369518
commit
1718a70d8a
2
http.go
2
http.go
|
@ -204,7 +204,7 @@ func (a *goBlog) buildRouter() (http.Handler, error) {
|
||||||
|
|
||||||
// Favicon
|
// Favicon
|
||||||
if !hasStaticPath("favicon.ico") {
|
if !hasStaticPath("favicon.ico") {
|
||||||
r.With(cacheLoggedIn, a.cacheMiddleware).Get("/favicon.ico", a.serve404)
|
r.With(a.cacheMiddleware).Get("/favicon.ico", a.serve404)
|
||||||
}
|
}
|
||||||
|
|
||||||
r.NotFound(a.servePostsAliasesRedirects())
|
r.NotFound(a.servePostsAliasesRedirects())
|
||||||
|
|
Loading…
Reference in New Issue