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

Fix case-sensitive comparison for ETag #268

Merged
merged 1 commit into from
Jan 4, 2019

Conversation

bidtellect-marcos
Copy link
Contributor

We were having issues where sometimes the ETag header parameter would come as Etag, which would cause ObjectStat.ETag to be an empty string.

Making the string comparison case-insensitive fixed the issue.

Copy link
Collaborator

@ebozduman ebozduman left a comment

Choose a reason for hiding this comment

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

LGTM

@harshavardhana
Copy link
Member

All HTTP headers interpreted should be case insensitive @poornas - we may need to check if we have more places such as these.

@poornas
Copy link
Contributor

poornas commented Jan 4, 2019

will do @harshavardhana

@kannappanr
Copy link
Contributor

@harshavardhana Will merge this PR now. @poornas will be sending in another PR to fix the remaining ones.

@kannappanr kannappanr merged commit d1f6255 into minio:master Jan 4, 2019
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.

5 participants