Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Revert "fix https://github.com/chrislusf/seaweedfs/issues/780"

chenwanlic668e55e07bb
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index be7b8e69ca..2276c67b78 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 {