aboutsummaryrefslogtreecommitdiff
path: root/weed/server/common.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-07-25 20:06:40 -0700
committerChris Lu <chris.lu@gmail.com>2020-07-25 20:06:40 -0700
commit023a1efdf2b05a9e1595e9f95e5919a829d3fea7 (patch)
tree38ea73b74cdbcbf50eee7df21c4b9b1cad330f07 /weed/server/common.go
parent54eebf538f0e4b335bea5137dbcd0f0e20d9eb68 (diff)
downloadseaweedfs-023a1efdf2b05a9e1595e9f95e5919a829d3fea7.tar.xz
seaweedfs-023a1efdf2b05a9e1595e9f95e5919a829d3fea7.zip
set filename in Content-Disposition header
Diffstat (limited to 'weed/server/common.go')
-rw-r--r--weed/server/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/common.go b/weed/server/common.go
index c43b144cb..7fc4d45f3 100644
--- a/weed/server/common.go
+++ b/weed/server/common.go
@@ -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") != "" {