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
fix: set user metadata key to lowercase (#3894)
famosss25e012d30b37
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex 8c4e3f0e87..37851b147f 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -409,10 +409,22 @@ func (s3a *S3ApiServer) proxyToFiler(w http.ResponseWriter, r *http.Request, desreturn}+ setUserMetadataKeyToLowercase(resp)+responseStatusCode := responseFn(resp, w)s3err.PostLog(r, responseStatusCode, s3err.ErrNone)}+func setUserMetadataKeyToLowercase(resp *http.Response) {+ for key, value := range resp.Header {+ if strings.HasPrefix(key, s3_constants.AmzUserMetaPrefix) {+ resp.Header[strings.ToLower(key)] = value+ delete(resp.Header,key)+ continue+ }+ }+}+func passThroughResponse(proxyResponse *http.Response, w http.ResponseWriter) (statusCode int) {for k, v := range proxyResponse.Header {w.Header()[k] = v