Skip to content

Commit

Permalink
Fix case-sensitive comparison for ETag (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
bidtellect-marcos authored and kannappanr committed Jan 4, 2019
1 parent 3e89239 commit d1f6255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Minio/ApiEndpoints/ObjectOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ private async Task<List<DeleteError>> removeObjectsAsync(string bucketName, List
{
lastModified = DateTime.Parse(parameter.Value.ToString());
}
else if (parameter.Name.Equals("ETag"))
else if (parameter.Name.Equals("ETag", StringComparison.OrdinalIgnoreCase))
{
etag = parameter.Value.ToString().Replace("\"", "");
}
Expand Down

0 comments on commit d1f6255

Please sign in to comment.