diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-23 10:05:40 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-23 10:05:40 -0700 |
| commit | 2579edbc6088b642de78343bc8c3208c6542d273 (patch) | |
| tree | 12f671a2c1fec1821d64b06f54ab41018a933eaa | |
| parent | e0c8507d9319bbf66bc9d230d03556eb8daa80a6 (diff) | |
| download | seaweedfs-2579edbc6088b642de78343bc8c3208c6542d273.tar.xz seaweedfs-2579edbc6088b642de78343bc8c3208c6542d273.zip | |
fix bug found by tests
| -rw-r--r-- | weed/operation/upload_content.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index 60fc0c049..df46627c3 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -88,6 +88,7 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader, err = fmt.Errorf("read input: %v", err) return } + data = buf.Bytes() } uploadResult, uploadErr := retriedUploadData(uploadUrl, filename, cipher, data, isInputCompressed, mtype, pairMap, jwt) return uploadResult, uploadErr, data |
