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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
minor
chrislu9c944377dc82
diff --git a/weed/util/http_util.go b/weed/util/http_util.goindex 883dffe602..748bb6e87c 100644--- a/weed/util/http_util.go+++ b/weed/util/http_util.go@@ -60,7 +60,7 @@ func Get(url string) ([]byte, bool, error) {if err != nil {return nil, true, err}- defer response.Body.Close()+ defer CloseResponse(response)var reader io.ReadCloserswitch response.Header.Get("Content-Encoding") {@@ -242,8 +242,8 @@ func ReadUrl(fileUrl string, cipherKey []byte, isContentCompressed bool, isFullCif err != nil {return 0, err}+ defer CloseResponse(r)- defer r.Body.Close()if r.StatusCode >= 400 {return 0, fmt.Errorf("%s: %s", fileUrl, r.Status)}