🐛 fix write status sequence

This commit is contained in:
微凉
2022-02-18 18:58:02 +08:00
parent 977888070a
commit 270349f37c
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}