From c668e55e07bbaac85ab1d3f0778e9916678756e5 Mon Sep 17 00:00:00 2001 From: chenwanli Date: Mon, 11 Mar 2019 11:48:11 +0800 Subject: [PATCH] Revert "fix https://github.com/chrislusf/seaweedfs/issues/780" This reverts commit 31038acccf73541204b320fc334d0acad0b9923a. --- weed/operation/upload_content.go | 6 ------ 1 file changed, 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 {