aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-15 20:57:08 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-15 20:57:08 -0800
commit392678f8f33974b2b7f3c6ff1e311887a846d1e3 (patch)
tree432eae1c347ded7e3e73c4fb3c52c5f3f59799e3 /weed/command/filer_copy.go
parente6ee421d6153a4fea25df19e9be03b984add8b14 (diff)
downloadseaweedfs-392678f8f33974b2b7f3c6ff1e311887a846d1e3.tar.xz
seaweedfs-392678f8f33974b2b7f3c6ff1e311887a846d1e3.zip
upload skipping mimetype if not needed
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 9995cf6aa..f14d18c52 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -378,7 +378,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(ctx context.Context, task FileC
uploadResult, err := operation.Upload(targetUrl,
fileName+"-"+strconv.FormatInt(i+1, 10),
io.NewSectionReader(f, i*chunkSize, chunkSize),
- false, "application/octet-stream", nil, assignResult.Auth)
+ false, "", nil, assignResult.Auth)
if err != nil {
uploadError = fmt.Errorf("upload data %v to %s: %v\n", fileName, targetUrl, err)
return