Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption headers should also be set during initMultipart #930

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

harshavardhana
Copy link
Member

This was reproduced while testing encryption features.

@@ -527,6 +527,12 @@ func (c Client) ComposeObject(dst DestinationInfo, srcs []SourceInfo) error {
for k, v := range metaMap {
metaHeaders[k] = v
}

// Add destination encryption headers
for k, v := range dst.encryption.getSSEHeaders(false) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more readable to just use GetSSEHeaders().LGTM otherwise.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to stick to requirements of a public function. Since this is an internal functionality it makes sense to use the internal function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@kannappanr kannappanr merged commit ff0a3c9 into minio:master Feb 27, 2018
@harshavardhana harshavardhana deleted the fix-headers branch February 27, 2018 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants