mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Replace dashes with underscores in x-amz-meta headers (#3965)
This commit is contained in:
parent
2009719b89
commit
180853a2c9
|
@ -187,7 +187,11 @@ func toMetadata(attributes map[string][]byte) map[string]string {
|
|||
metadata[k[len(s3_constants.AmzUserMetaPrefix):]] = string(v)
|
||||
}
|
||||
}
|
||||
return metadata
|
||||
parsed_metadata := make(map[string]string)
|
||||
for k, v := range metadata {
|
||||
parsed_metadata[strings.Replace(k, "-", "_", -1)] = v
|
||||
}
|
||||
return parsed_metadata
|
||||
}
|
||||
|
||||
func (az *azureRemoteStorageClient) UpdateFileMetadata(loc *remote_pb.RemoteStorageLocation, oldEntry *filer_pb.Entry, newEntry *filer_pb.Entry) (err error) {
|
||||
|
|
Loading…
Reference in a new issue