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

Fixed patchObject ignoring ContentType and ContentEncoding #1430

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

UnAfraid
Copy link
Contributor

@UnAfraid UnAfraid commented Dec 15, 2023

I was trying to update object's ContentType and noticed that only metadata was updated, but not the ContentType upon looking at the code i noticed that its ignored entirely.

Most likely fixes #273

Copy link
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -44,7 +44,7 @@ func (g *Server) GetBucket(ctx context.Context, req *pb.GetBucketRequest) (*pb.B
TimeCreated: timestamppb.New(bucket.TimeCreated),
}
return grpc_bucket, nil
///return GetBucketFromBackend(g.backend, req.Bucket)
// /return GetBucketFromBackend(g.backend, req.Bucket)
Copy link
Owner

Choose a reason for hiding this comment

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

I realize that this was autoformating, but do you want to take the opportunity to delete this line altogether 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing!

Copy link
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@fsouza fsouza merged commit 0c31d15 into fsouza:main Dec 19, 2023
26 checks passed
@UnAfraid UnAfraid deleted the bugfix/patch-content-type branch December 19, 2023 10:33
@UnAfraid
Copy link
Contributor Author

Thanks for merging it, do you have an idea of when it will be released?

@fsouza
Copy link
Owner

fsouza commented Dec 19, 2023

I just pushed a new tag. The release should be available soon!

@UnAfraid
Copy link
Contributor Author

Thank you again!

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.

Patch call with new content-type does nothing
2 participants