mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix filename not set error
This commit is contained in:
parent
8111f7663d
commit
47aea42d66
|
@ -165,7 +165,7 @@ func GetOrHeadHandler(w http.ResponseWriter, r *http.Request, isGetMethod bool)
|
|||
}
|
||||
}
|
||||
if n.NameSize > 0 && filename == "" {
|
||||
filename := string(n.Name)
|
||||
filename = string(n.Name)
|
||||
dotIndex := strings.LastIndex(filename, ".")
|
||||
if dotIndex > 0 {
|
||||
ext = filename[dotIndex:]
|
||||
|
|
Loading…
Reference in a new issue