aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2019-03-10 21:32:55 -0700
committerGitHub <noreply@github.com>2019-03-10 21:32:55 -0700
commit1e0e909fa144557fe95f50a0619c3c6b0db3c1d3 (patch)
treed6ee1af9e299d53dfb530d432161468408fa48dd
parent6fe071175dec7bb7db482dfb8506e9471d4a9e6f (diff)
parentc668e55e07bbaac85ab1d3f0778e9916678756e5 (diff)
downloadseaweedfs-1e0e909fa144557fe95f50a0619c3c6b0db3c1d3.tar.xz
seaweedfs-1e0e909fa144557fe95f50a0619c3c6b0db3c1d3.zip
Merge pull request #878 from PapaYofen/revert-fix-780
Revert "fix https://github.com/chrislusf/seaweedfs/issues/780"
-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 {