mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Solve the Chinese name disorder of download file
This commit is contained in:
parent
7a70caac3c
commit
7458ff9523
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue