From d44f192d3e584489de560485f871d3600f75a1cd Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 2 Jan 2021 06:05:45 +0800 Subject: 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 --- modules/public/public.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/public') 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. -- cgit v1.2.3