Browse Source

Update volume_server_handlers_write.go

返回实际文件大小,而不是needle的大小
pull/756/head
zoe 6 years ago
committed by GitHub
parent
commit
29eff0ecd7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/server/volume_server_handlers_write.go

2
weed/server/volume_server_handlers_write.go

@ -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)
}

Loading…
Cancel
Save