From d5ebfd5b0cf0e1bbd52e7a8d264e405b822d561b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 2 Jan 2019 12:57:33 -0800 Subject: [PATCH] fix s3cmd put 1. fix volume put data size --- weed/storage/needle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/storage/needle.go b/weed/storage/needle.go index 9d47cc5f9..5863065a9 100644 --- a/weed/storage/needle.go +++ b/weed/storage/needle.go @@ -66,6 +66,7 @@ func ParseUpload(r *http.Request) ( mimeType = r.Header.Get("Content-Type") fileName = "" data, e = ioutil.ReadAll(r.Body) + originalDataSize = len(data) } if e != nil { return