fier/s3: save "Content-Disposition" to extended properties

related to https://github.com/chrislusf/seaweedfs/issues/2371
This commit is contained in:
Chris Lu
2021-10-12 00:04:28 -07:00
parent 34f764007f
commit de1ec050e8
2 changed files with 4 additions and 1 deletions

View File

@@ -256,6 +256,9 @@ func adjustHeaderContentDisposition(w http.ResponseWriter, r *http.Request, file
w.Header().Set("Content-Disposition", responseContentDisposition)
return
}
if w.Header().Get("Content-Disposition") != "" {
return
}
if filename != "" {
filename = url.QueryEscape(filename)
contentDisposition := "inline"