Browse Source

Replace dashes with underscores in x-amz-meta headers (#3965)

pull/3968/head
aronneagu 2 years ago
committed by GitHub
parent
commit
180853a2c9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      weed/remote_storage/azure/azure_storage_client.go

6
weed/remote_storage/azure/azure_storage_client.go

@ -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…
Cancel
Save