|
@ -95,7 +95,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) |
|
|
w.WriteHeader(http.StatusNotModified) |
|
|
w.WriteHeader(http.StatusNotModified) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
w.Header().Set("Etag", etag) |
|
|
|
|
|
|
|
|
w.Header().Set("Etag", "\""+etag+"\"") |
|
|
if n.NameSize > 0 && filename == "" { |
|
|
if n.NameSize > 0 && filename == "" { |
|
|
filename = string(n.Name) |
|
|
filename = string(n.Name) |
|
|
dotIndex := strings.LastIndex(filename, ".") |
|
|
dotIndex := strings.LastIndex(filename, ".") |
|
|