aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-23 10:05:40 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-23 10:05:40 -0700
commit2579edbc6088b642de78343bc8c3208c6542d273 (patch)
tree12f671a2c1fec1821d64b06f54ab41018a933eaa
parente0c8507d9319bbf66bc9d230d03556eb8daa80a6 (diff)
downloadseaweedfs-2579edbc6088b642de78343bc8c3208c6542d273.tar.xz
seaweedfs-2579edbc6088b642de78343bc8c3208c6542d273.zip
fix bug found by tests
-rw-r--r--weed/operation/upload_content.go1
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