summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-02 06:05:45 +0800
committerGitHub <noreply@github.com>2021-01-01 17:05:45 -0500
commitd44f192d3e584489de560485f871d3600f75a1cd (patch)
tree64a1753a6a03ad46ce60137f9cb07ab1809591ad /modules
parent8c086bae6e4a041234ba0f0463a392952386cc18 (diff)
downloadgitea-d44f192d3e584489de560485f871d3600f75a1cd.tar.gz
gitea-d44f192d3e584489de560485f871d3600f75a1cd.zip
When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route (#14211)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/public/public.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/public/public.go b/modules/public/public.go
index c8148e6db3..6417c91f1a 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -31,6 +31,7 @@ var KnownPublicEntries = []string{
"js",
"serviceworker.js",
"vendor",
+ "favicon.ico",
}
// Custom implements the macaron static handler for serving custom assets.