feat: add Content-Disposition header for file downloads in backup and logs handlers

This commit is contained in:
Wikid82
2025-11-21 20:57:41 -05:00
parent 94592c8515
commit cdc6630a79
2 changed files with 2 additions and 0 deletions
@@ -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)
}