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
fixed superfluous response.WriteHeader call" warning
chrisluf5a57a646342
diff --git a/weed/server/common.go b/weed/server/common.goindex 49dd78ce04..930695f4b1 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -369,8 +369,7 @@ func ProcessRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64err = writeFn(bufferedWriter)if err != nil {glog.Errorf("ProcessRangeRequest range[0]: %+v err: %v", w.Header(), err)- w.Header().Del("Content-Length")- http.Error(w, err.Error(), http.StatusInternalServerError)+ // Cannot call http.Error() here because WriteHeader was already calledreturn fmt.Errorf("ProcessRangeRequest range[0]: %w", err)}return nil@@ -424,7 +423,7 @@ func ProcessRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64w.WriteHeader(http.StatusPartialContent)if _, err := io.CopyN(bufferedWriter, sendContent, sendSize); err != nil {glog.Errorf("ProcessRangeRequest err: %v", err)- http.Error(w, "Internal Error", http.StatusInternalServerError)+ // Cannot call http.Error() here because WriteHeader was already calledreturn fmt.Errorf("ProcessRangeRequest err: %w", err)}return nil