|
|
@ -9,6 +9,7 @@ import ( |
|
|
|
"io/fs" |
|
|
|
"mime/multipart" |
|
|
|
"net/http" |
|
|
|
"net/url" |
|
|
|
"path/filepath" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
@ -256,6 +257,7 @@ func adjustHeaderContentDisposition(w http.ResponseWriter, r *http.Request, file |
|
|
|
return |
|
|
|
} |
|
|
|
if filename != "" { |
|
|
|
filename = url.QueryEscape(filename) |
|
|
|
contentDisposition := "inline" |
|
|
|
if r.FormValue("dl") != "" { |
|
|
|
if dl, _ := strconv.ParseBool(r.FormValue("dl")); dl { |
|
|
|