[backup] fix db name in we request

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei 2023-04-13 18:42:51 +03:30
parent 293787f867
commit e6f08517a3

View File

@ -137,7 +137,7 @@ func (a *ServerController) getDb(c *gin.Context) {
} }
// Set the headers for the response // Set the headers for the response
c.Header("Content-Type", "application/octet-stream") 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 // Write the file contents to the response
c.Writer.Write(db) c.Writer.Write(db)