mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 22:04:06 +08:00
🐛 fix write status sequence
This commit is contained in:
parent
977888070a
commit
270349f37c
@ -56,7 +56,7 @@ func Plist(c *gin.Context) {
|
||||
</array>
|
||||
</dict>
|
||||
</plist>`, u, name, name)
|
||||
c.Status(200)
|
||||
c.Header("Content-Type", "application/xml;charset=utf-8")
|
||||
c.Status(200)
|
||||
_, _ = c.Writer.WriteString(plist)
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user