mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-04 08:54:38 +08:00
🐛 fix write status sequence
This commit is contained in:
@ -48,8 +48,8 @@ func Static(r *gin.Engine) {
|
||||
r.StaticFS("/assets/", http.FS(assets))
|
||||
r.StaticFS("/public/", http.FS(pub))
|
||||
r.NoRoute(func(c *gin.Context) {
|
||||
c.Status(200)
|
||||
c.Header("Content-Type", "text/html")
|
||||
c.Status(200)
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/@manage") {
|
||||
_, _ = c.Writer.WriteString(conf.ManageHtml)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user