diff --git a/cmd/handler-utils.go b/cmd/handler-utils.go index 4fc0083f9..0e2c7dcf7 100644 --- a/cmd/handler-utils.go +++ b/cmd/handler-utils.go @@ -83,9 +83,9 @@ func extractMetadataFromHeader(header http.Header) map[string]string { for key := range header { cKey := http.CanonicalHeaderKey(key) if strings.HasPrefix(cKey, "X-Amz-Meta-") { - metadata[cKey] = header.Get(cKey) + metadata[cKey] = header.Get(key) } else if strings.HasPrefix(key, "X-Minio-Meta-") { - metadata[cKey] = header.Get(cKey) + metadata[cKey] = header.Get(key) } } // Return.