diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-15 20:57:08 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-15 20:57:08 -0800 |
| commit | 392678f8f33974b2b7f3c6ff1e311887a846d1e3 (patch) | |
| tree | 432eae1c347ded7e3e73c4fb3c52c5f3f59799e3 /weed/util/http_util.go | |
| parent | e6ee421d6153a4fea25df19e9be03b984add8b14 (diff) | |
| download | seaweedfs-392678f8f33974b2b7f3c6ff1e311887a846d1e3.tar.xz seaweedfs-392678f8f33974b2b7f3c6ff1e311887a846d1e3.zip | |
upload skipping mimetype if not needed
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 79a442a56..2e0614805 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -28,7 +28,7 @@ func init() { } func PostBytes(url string, body []byte) ([]byte, error) { - r, err := client.Post(url, "application/octet-stream", bytes.NewReader(body)) + r, err := client.Post(url, "", bytes.NewReader(body)) if err != nil { return nil, fmt.Errorf("Post to %s: %v", url, err) } |
