[backup] fix db name in we request

This commit is contained in:
Alireza Ahmadi
2023-04-13 14:13:04 +02:00
parent 838bdaf314
commit c13b7b2a18

View File

@@ -137,7 +137,7 @@ func (a *ServerController) getDb(c *gin.Context) {
}
// Set the headers for the response
c.Header("Content-Type", "application/octet-stream")
c.Header("Content-Disposition", "attachment; filename=xui.db")
c.Header("Content-Disposition", "attachment; filename=x-ui.db")
// Write the file contents to the response
c.Writer.Write(db)