mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 00:54:53 +08:00
support file names with a comma inside.
This commit is contained in:
@@ -111,7 +111,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
|
||||
w.Header().Set("Content-Type", mtype)
|
||||
}
|
||||
if filename != "" {
|
||||
w.Header().Set("Content-Disposition", "filename="+fileNameEscaper.Replace(filename))
|
||||
w.Header().Set("Content-Disposition", "filename=\""+fileNameEscaper.Replace(filename)+"\"")
|
||||
}
|
||||
if ext != ".gz" {
|
||||
if n.IsGzipped() {
|
||||
|
Reference in New Issue
Block a user