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
proxy status code of filer delete response
Rinat Shigapov2d2c5dfa39af
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex 300441ef2d..ce3bdba8cd 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -14,7 +14,7 @@ import ("github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/chrislusf/seaweedfs/weed/server"+ weed_server "github.com/chrislusf/seaweedfs/weed/server""github.com/chrislusf/seaweedfs/weed/util")@@ -108,11 +108,11 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.RequedestUrl := fmt.Sprintf("http://%s%s/%s%s",s3a.option.Filer, s3a.option.BucketsPath, bucket, object)- s3a.proxyToFiler(w, r, destUrl, func(proxyResonse *http.Response, w http.ResponseWriter) {- for k, v := range proxyResonse.Header {+ s3a.proxyToFiler(w, r, destUrl, func(proxyResponse *http.Response, w http.ResponseWriter) {+ for k, v := range proxyResponse.Header {w.Header()[k] = v}- w.WriteHeader(http.StatusNoContent)+ w.WriteHeader(proxyResponse.StatusCode)})}