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
add back http.StatusPartialContent
Chris Luf022aff289d5
diff --git a/weed/server/common.go b/weed/server/common.goindex 75fc3ad9e6..44098a4b50 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -274,7 +274,7 @@ func processRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64ra := ranges[0]w.Header().Set("Content-Length", strconv.FormatInt(ra.length, 10))w.Header().Set("Content-Range", ra.contentRange(totalSize))- // w.WriteHeader(http.StatusPartialContent)+ w.WriteHeader(http.StatusPartialContent)err = writeFn(w, ra.start, ra.length)if err != nil {@@ -315,7 +315,7 @@ func processRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64if w.Header().Get("Content-Encoding") == "" {w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))}- // w.WriteHeader(http.StatusPartialContent)+ w.WriteHeader(http.StatusPartialContent)if _, err := io.CopyN(w, sendContent, sendSize); err != nil {http.Error(w, "Internal Error", http.StatusInternalServerError)return