mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 18:07:56 +08:00
set filename in Content-Disposition header
This commit is contained in:
@@ -218,7 +218,7 @@ func handleStaticResources2(r *mux.Router) {
|
||||
r.PathPrefix("/seaweedfsstatic/").Handler(http.StripPrefix("/seaweedfsstatic", http.FileServer(statikFS)))
|
||||
}
|
||||
|
||||
func adjustHeadersAfterHEAD(w http.ResponseWriter, r *http.Request, filename string) {
|
||||
func adjustHeaders(w http.ResponseWriter, r *http.Request, filename string) {
|
||||
if filename != "" {
|
||||
contentDisposition := "inline"
|
||||
if r.FormValue("dl") != "" {
|
||||
|
Reference in New Issue
Block a user