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
remove the http 304 response body
stlpmof87ccbddb4ce
diff --git a/weed/server/volume_server_handlers_write.go b/weed/server/volume_server_handlers_write.goindex db8fcb5553..05e21612be 100644--- a/weed/server/volume_server_handlers_write.go+++ b/weed/server/volume_server_handlers_write.go@@ -51,10 +51,14 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {ret := operation.UploadResult{}_, isUnchanged, writeError := topology.ReplicatedWrite(vs.GetMaster(), vs.store, volumeId, needle, r)- httpStatus := http.StatusCreated- if isUnchanged {- httpStatus = http.StatusNotModified++ // http 304 status code does not allow body+ if writeError == nil && isUnchanged {+ w.WriteHeader(http.StatusNotModified)+ return}++ httpStatus := http.StatusCreatedif writeError != nil {httpStatus = http.StatusInternalServerErrorret.Error = writeError.Error()