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
skip http.StatusPartialContent in case of error and superfluous response.WriteHeader
Chris Lue7c04af1d061
diff --git a/weed/server/common.go b/weed/server/common.goindex bc60088648..c43b144cbb 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