Browse Source

[backup] fix db name in we request

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 year ago
parent
commit
e6f08517a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/controller/server.go

+ 1 - 1
web/controller/server.go

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