From 14d8760c1ff197744a09e7666a8977f844552072 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 24 Jan 2024 19:23:42 -0500 Subject: [PATCH] fix: pass name to http.ServeContent --- api/s5/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/http.go b/api/s5/http.go index 0341ca0..aac35be 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -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) {