mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Revert "fix https://github.com/chrislusf/seaweedfs/issues/780"
This reverts commit 31038acccf
.
This commit is contained in:
parent
6fe071175d
commit
c668e55e07
|
@ -92,12 +92,6 @@ func upload_content(uploadUrl string, fillBufferFunction func(w io.Writer) error
|
||||||
return nil, post_err
|
return nil, post_err
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode < http.StatusOK ||
|
|
||||||
resp.StatusCode > http.StatusIMUsed {
|
|
||||||
return nil, errors.New(http.StatusText(resp.StatusCode))
|
|
||||||
}
|
|
||||||
|
|
||||||
etag := getEtag(resp)
|
etag := getEtag(resp)
|
||||||
resp_body, ra_err := ioutil.ReadAll(resp.Body)
|
resp_body, ra_err := ioutil.ReadAll(resp.Body)
|
||||||
if ra_err != nil {
|
if ra_err != nil {
|
||||||
|
|
Loading…
Reference in a new issue