]> source.dussan.org Git - gitea.git/commitdiff
add 'fonts' into 'KnownPublicEntries' (#15188)
authora1012112796 <1012112796@qq.com>
Tue, 30 Mar 2021 12:47:34 +0000 (20:47 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 12:47:34 +0000 (15:47 +0300)
fix #15184

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/public/public.go

index 6695944bd65a0eb24b23c86a6c28c5c16ec05e97..ee3d2cf75f739f990342bb5ee42d36ee7c3d03ca 100644 (file)
@@ -27,6 +27,7 @@ type Options struct {
 // KnownPublicEntries list all direct children in the `public` directory
 var KnownPublicEntries = []string{
        "css",
+       "fonts",
        "img",
        "js",
        "serviceworker.js",