diff --git a/api/s5/http.go b/api/s5/http.go index 8ac650f..57b2fe2 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -1345,6 +1345,8 @@ func (h *HttpHandler) DownloadFile(jc jape.Context) { } }(file) + jc.ResponseWriter.Header().Set("Content-Type", file.Mime()) + http.ServeContent(jc.ResponseWriter, jc.Request, file.Name(), file.Modtime(), file) }