summaryrefslogtreecommitdiffstats
path: root/modules/public/public.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-03-30 20:47:34 +0800
committerGitHub <noreply@github.com>2021-03-30 15:47:34 +0300
commitf5b6dc9759e8077f76072dbb01586f9876ccafbf (patch)
tree25713a5252681c9afa9f3fae195309b62d58c3b9 /modules/public/public.go
parentd099f0858f7554bd21c871bedb5e60e20e0eb9c9 (diff)
downloadgitea-f5b6dc9759e8077f76072dbb01586f9876ccafbf.tar.gz
gitea-f5b6dc9759e8077f76072dbb01586f9876ccafbf.zip
add 'fonts' into 'KnownPublicEntries' (#15188)
fix #15184 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/public/public.go')
-rw-r--r--modules/public/public.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/public/public.go b/modules/public/public.go
index 6695944bd6..ee3d2cf75f 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -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",