@@ -195,7 +195,7 @@ func DownloadFile(w http.ResponseWriter, r *http.Request) {
|
|||||||
if strings.Contains(filepath.Dir(filename), root) {
|
if strings.Contains(filepath.Dir(filename), root) {
|
||||||
w.Header().Add(
|
w.Header().Add(
|
||||||
"Content-Disposition",
|
"Content-Disposition",
|
||||||
"inline; filename="+filepath.Base(filename),
|
"inline; filename=\""+filepath.Base(filename)+"\"",
|
||||||
)
|
)
|
||||||
w.Header().Set(
|
w.Header().Set(
|
||||||
"Content-Type",
|
"Content-Type",
|
||||||
|
|||||||
Reference in New Issue
Block a user