From c53e828efeb43fbb6f28543269e671902972595f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 2 Jan 2021 00:24:48 +0800 Subject: [PATCH] When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route --- modules/public/public.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/public/public.go b/modules/public/public.go index c8148e6db36f3..6417c91f1a6f0 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.