diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-19 22:11:36 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-19 22:11:36 -0700 |
| commit | 16fe132a20b859a57ba51cbb8824dbae69513a55 (patch) | |
| tree | 0d90a06a0b0af85c349d34de1e9d9446408ef3e2 /weed/operation/upload_content.go | |
| parent | 044841c885f659ebf52926a4176ecf43744202dc (diff) | |
| download | seaweedfs-16fe132a20b859a57ba51cbb8824dbae69513a55.tar.xz seaweedfs-16fe132a20b859a57ba51cbb8824dbae69513a55.zip | |
detect mime type before replicating to other volume servers
Diffstat (limited to 'weed/operation/upload_content.go')
| -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 1e2c591c5..b26b82800 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -93,6 +93,7 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i if !isInputGzipped { if mtype == "" { mtype = http.DetectContentType(data) + // println("detect1 mimetype to", mtype) if mtype == "application/octet-stream" { mtype = "" } |
