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
wrap etag value with double quotes
Chris Lu57a4549d8678
diff --git a/go/storage/crc.go b/go/storage/crc.goindex 41f7f6d00d..43e65757af 100644--- a/go/storage/crc.go+++ b/go/storage/crc.go@@ -25,5 +25,5 @@ func (c CRC) Value() uint32 {func (n *Needle) Etag() string {bits := make([]byte, 4)util.Uint32toBytes(bits, uint32(n.Checksum))- return fmt.Sprintf("%x", bits)+ return fmt.Sprintf("\"%x\"", bits)}diff --git a/go/weed/weed_server/volume_server_handlers.go b/go/weed/weed_server/volume_server_handlers.goindex e7571ccc78..eed198e4a6 100644--- a/go/weed/weed_server/volume_server_handlers.go+++ b/go/weed/weed_server/volume_server_handlers.go@@ -95,7 +95,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)w.WriteHeader(http.StatusNotModified)return}- w.Header().Set("Etag", "\""+etag+"\"")+ w.Header().Set("Etag", etag)if n.NameSize > 0 && filename == "" {filename = string(n.Name)dotIndex := strings.LastIndex(filename, ".")