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

Disable SHA-256 computation for https #134

Merged
merged 2 commits into from
May 13, 2017
Merged

Conversation

poornas
Copy link
Contributor

@poornas poornas commented May 9, 2017

Currently minio-dotnet sdk computes sha256 for https requests. This change fixes #101.

{
// No need to compute SHA256 if endpoint scheme is https
if (client.BaseUrl.Host.StartsWith("https"))
Copy link
Member

Choose a reason for hiding this comment

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

We should have the client struct remember if the RestClient is secure or not. It is odd style to passing the entire IRestClient into 'SetContentSha256' and unsafe - as a thumb rule we should only passing the necessary arguments.

@harshavardhana harshavardhana merged commit ac67680 into minio:master May 13, 2017
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.

Disable sha256 computation for https
3 participants