Browse Source
Update volume_server_handlers_write.go
返回实际文件大小,而不是needle的大小
pull/756/head
zoe
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/server/volume_server_handlers_write.go
|
@ -44,7 +44,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { |
|
|
if needle.HasName() { |
|
|
if needle.HasName() { |
|
|
ret.Name = string(needle.Name) |
|
|
ret.Name = string(needle.Name) |
|
|
} |
|
|
} |
|
|
ret.Size = size |
|
|
|
|
|
|
|
|
ret.Size = needle.DataSize |
|
|
setEtag(w, needle.Etag()) |
|
|
setEtag(w, needle.Etag()) |
|
|
writeJsonQuiet(w, r, httpStatus, ret) |
|
|
writeJsonQuiet(w, r, httpStatus, ret) |
|
|
} |
|
|
} |
|
|