Skip to content

Commit c53e828

Browse files
committed
When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route
1 parent 4f2f08b commit c53e828

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/public/public.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var KnownPublicEntries = []string{
3131
"js",
3232
"serviceworker.js",
3333
"vendor",
34+
"favicon.ico",
3435
}
3536

3637
// Custom implements the macaron static handler for serving custom assets.

0 commit comments

Comments
 (0)