Skip to content

Commit

Permalink
[backup] fix db name in we request
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <[email protected]>
  • Loading branch information
MHSanaei and alireza0 committed Apr 13, 2023
1 parent 293787f commit e6f0851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controller/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit e6f0851

@Vrzgi
Copy link

@Vrzgi Vrzgi commented on e6f0851 Apr 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How I can import .db file from another panel to my new panel on another server ?

Please sign in to comment.