diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-12-27 19:37:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 19:37:11 -0800 |
| commit | 2ffc87b86eb19d2b90e619456bc637f38c646feb (patch) | |
| tree | c1e4e4b7d1e97910bf54b3760ae52e66579f2d8a | |
| parent | 7a70caac3cffdc049790df805ae101588fbffc0f (diff) | |
| parent | 7458ff952311deff8aa3ca1a8ca13f788e311dce (diff) | |
| download | seaweedfs-2ffc87b86eb19d2b90e619456bc637f38c646feb.tar.xz seaweedfs-2ffc87b86eb19d2b90e619456bc637f38c646feb.zip | |
Merge pull request #1708 from fuyouyshengwu/master
Solve the Chinese name disorder of download file
| -rw-r--r-- | weed/server/filer_server_handlers_read.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index d55bf7cbb..4d61193ec 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/weed/server/filer_server_handlers_read.go @@ -6,6 +6,7 @@ import ( "io" "mime" "net/http" + "net/url" "path/filepath" "strconv" "strings" @@ -121,6 +122,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request, setEtag(w, etag) filename := entry.Name() + filename = url.QueryEscape(filename) adjustHeaderContentDisposition(w, r, filename) totalSize := int64(entry.Size()) |
