mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Fix: Typo in non canonicalized header extraction (#3480)
Extracting metadata from headers was doing wrong when Headers are not well canonicalized, fixing typo.
This commit is contained in:
parent
d8e4d3c9c8
commit
ef3319a49d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user