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

Add Content-Md5 header only if length of md5 passed is greater than zero #828

Merged
merged 1 commit into from Sep 27, 2017

Conversation

nitisht
Copy link
Contributor

@nitisht nitisht commented Sep 27, 2017

As HTTP headers do not differentiate between value not set and value
set to (""), minio-go should not differentiate between empty byte arrays ("")
and nil byte arrays, add Content-Md5 header only if length of []byte is
greater than zero

See: minio/minio-java#615, & minio/minio#4972 (comment)

As HTTP headers do not differentiate between value not set and value
set to (""), minio-go should not differentiate between empty byte arrays ("")
and nil byte arrays, add Content-Md5 header only if length of []byte is
greater than zero

Fixes: minio/minio-java#615
Copy link
Member

@aead aead left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants