fix: pass name to http.ServeContent
This commit is contained in:
parent
c3646fa4d4
commit
14d8760c1f
|
@ -1318,7 +1318,7 @@ func (h *HttpHandler) DownloadFile(jc jape.Context) {
|
||||||
}
|
}
|
||||||
}(file)
|
}(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) {
|
func setAuthCookie(jwt string, jc jape.Context) {
|
||||||
|
|
Loading…
Reference in New Issue