Merge pull request #878 from PapaYofen/revert-fix-780

Revert "fix https://github.com/chrislusf/seaweedfs/issues/780"
This commit is contained in:
Chris Lu 2019-03-10 21:32:55 -07:00 committed by GitHub
commit 1e0e909fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {