fix: pass name to http.ServeContent

This commit is contained in:
Derrick Hammer 2024-01-24 19:23:42 -05:00
parent c3646fa4d4
commit 14d8760c1f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -1318,7 +1318,7 @@ func (h *HttpHandler) DownloadFile(jc jape.Context) {
}
}(file)
http.ServeContent(jc.ResponseWriter, jc.Request, "", file.Modtime(), file)
http.ServeContent(jc.ResponseWriter, jc.Request, file.Name(), file.Modtime(), file)
}
func setAuthCookie(jwt string, jc jape.Context) {