Canonicalize metadata recevied as part of events (#3181)

This commit is contained in:
kannappanr
2020-04-19 10:10:40 -07:00
committed by GitHub
parent 89930fed29
commit e1617a504b
+2 -2
View File
@@ -424,10 +424,10 @@ func uploadSourceToTargetURL(ctx context.Context, urls URLs, progress io.Reader,
}
for k, v := range urls.SourceContent.UserMetadata {
metadata[k] = v
metadata[http.CanonicalHeaderKey(k)] = v
}
for k, v := range urls.SourceContent.Metadata {
metadata[k] = v
metadata[http.CanonicalHeaderKey(k)] = v
}
// Optimize for server side copy if the host is same.