1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 07:06:44 +02:00

Update volume_server_handlers_write.go

返回实际文件大小,而不是needle的大小
This commit is contained in:
zoe 2018-10-29 21:05:51 +08:00 committed by GitHub
parent 082bb49c7c
commit 29eff0ecd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {
if needle.HasName() {
ret.Name = string(needle.Name)
}
ret.Size = size
ret.Size = needle.DataSize
setEtag(w, needle.Etag())
writeJsonQuiet(w, r, httpStatus, ret)
}