diff --git a/server/controllers/other.go b/server/controllers/other.go index 7869307d..dd738547 100644 --- a/server/controllers/other.go +++ b/server/controllers/other.go @@ -56,7 +56,7 @@ func Plist(c *gin.Context) { `, u, name, name) - c.Status(200) c.Header("Content-Type", "application/xml;charset=utf-8") + c.Status(200) _, _ = c.Writer.WriteString(plist) } diff --git a/server/static.go b/server/static.go index 818d8c89..3e19564a 100644 --- a/server/static.go +++ b/server/static.go @@ -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 {