aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-03-11 00:58:17 -0700
committerChris Lu <chris.lu@gmail.com>2019-03-11 00:58:17 -0700
commit99ce10daeb07227ae79ae23d3ca61351bf4771a3 (patch)
treefd7492a90fdc4a0a3ad405d60b11b1c733aec931
parent2ce4dae79519a8f844bcb2ca9a27e9729eaa1718 (diff)
parent1e0e909fa144557fe95f50a0619c3c6b0db3c1d3 (diff)
downloadseaweedfs-99ce10daeb07227ae79ae23d3ca61351bf4771a3.tar.xz
seaweedfs-99ce10daeb07227ae79ae23d3ca61351bf4771a3.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs1.26
-rw-r--r--weed/operation/upload_content.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index be7b8e69c..2276c67b7 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -92,12 +92,6 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
return nil, post_err
}
defer resp.Body.Close()
-
- if resp.StatusCode < http.StatusOK ||
- resp.StatusCode > http.StatusIMUsed {
- return nil, errors.New(http.StatusText(resp.StatusCode))
- }
-
etag := getEtag(resp)
resp_body, ra_err := ioutil.ReadAll(resp.Body)
if ra_err != nil {