chenwanli 6 years ago
parent
commit
c668e55e07
  1. 6
      weed/operation/upload_content.go

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

Loading…
Cancel
Save