Skip to content

Commit 4b89b17

Browse files
committed
fix(handles): fix the README checking issue
1 parent 630cf30 commit 4b89b17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/handles/down.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func localProxy(c *gin.Context, link *model.Link, file model.Obj, proxyRange boo
131131
Writer := &common.WrittenResponseWriter{ResponseWriter: c.Writer}
132132

133133
//优先处理md文件
134-
if utils.Ext(file.GetName()) == "md" && setting.GetBool(conf.FilterReadMeScripts) {
134+
if file.GetName() == "README.md" && setting.GetBool(conf.FilterReadMeScripts) {
135135
buf := bytes.NewBuffer(make([]byte, 0, file.GetSize()))
136136
w := &common.InterceptResponseWriter{ResponseWriter: Writer, Writer: buf}
137137
err = common.Proxy(w, c.Request, link, file)

0 commit comments

Comments
 (0)