From 17022f8b62a7a72812b62cfabfef1d101dd3bab3 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 2 Jan 2021 18:52:36 +0800 Subject: [PATCH] When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route (#14211) (#14213) Co-authored-by: techknowlogick Co-authored-by: techknowlogick --- modules/public/public.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/public/public.go b/modules/public/public.go index 2dcc530a739..95e11a3ef4d 100644 --- a/modules/public/public.go +++ b/modules/public/public.go @@ -38,6 +38,7 @@ var KnownPublicEntries = []string{ "js", "serviceworker.js", "vendor", + "favicon.ico", } // Custom implements the macaron static handler for serving custom assets.