feat: add Content-Disposition header for file downloads in backup and logs handlers
This commit is contained in:
@@ -60,6 +60,7 @@ func (h *BackupHandler) Download(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.Header("Content-Disposition", "attachment; filename="+filename)
|
||||
c.File(path)
|
||||
}
|
||||
|
||||
|
||||
@@ -74,5 +74,6 @@ func (h *LogsHandler) Download(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.Header("Content-Disposition", "attachment; filename="+filename)
|
||||
c.File(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user