Add / to Accel Header

This commit is contained in:
Andreas Mieke 2021-03-07 22:54:09 +01:00
parent c0be366ed5
commit 147f83e696

View file

@ -200,7 +200,7 @@ func getFile(c *gin.Context) {
if viper.GetBool("XAccel") {
c.Header("Content-Disposition", "attatchment; filename="+parts[len(parts)-1])
c.Header("X-Accel-Redirect", URL.FileName.String)
c.Header("X-Accel-Redirect", "/"+URL.FileName.String)
} else {
c.FileAttachment(file, parts[len(parts)-1])
}