mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 14:57:24 +08:00
rename
This commit is contained in:
@@ -102,7 +102,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
|
||||
setEtag(w, etag)
|
||||
|
||||
filename := entry.Name()
|
||||
adjustHeaders(w, r, filename)
|
||||
adjustHeaderContentDisposition(w, r, filename)
|
||||
|
||||
if r.Method == "HEAD" {
|
||||
w.Header().Set("Content-Length", strconv.FormatInt(int64(filer2.TotalSize(entry.Chunks)), 10))
|
||||
|
Reference in New Issue
Block a user