From 4b89b17bb5521188477aa0571132607eef2752bc Mon Sep 17 00:00:00 2001 From: Stephen Zeng Date: Sun, 18 May 2025 21:57:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=88handles=EF=BC=89:=20=20fix=20the=20?= =?UTF-8?q?README=20checking=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handles/down.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handles/down.go b/server/handles/down.go index 2c5c2faf..0ea7323f 100644 --- a/server/handles/down.go +++ b/server/handles/down.go @@ -131,7 +131,7 @@ func localProxy(c *gin.Context, link *model.Link, file model.Obj, proxyRange boo Writer := &common.WrittenResponseWriter{ResponseWriter: c.Writer} //优先处理md文件 - if utils.Ext(file.GetName()) == "md" && setting.GetBool(conf.FilterReadMeScripts) { + if file.GetName() == "README.md" && setting.GetBool(conf.FilterReadMeScripts) { buf := bytes.NewBuffer(make([]byte, 0, file.GetSize())) w := &common.InterceptResponseWriter{ResponseWriter: Writer, Writer: buf} err = common.Proxy(w, c.Request, link, file)