From 697fff7a8bce4ceb5095265c664eea3a630a8e76 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 2 Jan 2021 06:05:45 +0800 Subject: [PATCH] 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(+) diff --git a/modules/public/public.go b/modules/public/public.go index 2dcc530a739a5..95e11a3ef4d47 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.