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

Ignore Body of Responses to HEAD Requests as per Spec #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gkleen
Copy link

@gkleen gkleen commented Apr 2, 2024

As per the HTTP Spec server responses to HEAD Requests must not contain bodies.

Nontheless minio-hs relies on the existence of a Content-Type header as a heuristic of whether to expect an error message in the body of the response.
Some S3 api servers (such as garage adhere to the http spec and produce responses to HEAD requests without bodies but containing a Content-Type header (because an analogous GET request would return one).
minio-hs currently fails in such situations.

@donatello
Copy link
Member

@gkleen Could you rebase your PR on master branch so that we can run the updated tests?

@gkleen
Copy link
Author

gkleen commented May 13, 2024

@gkleen Could you rebase your PR on master branch so that we can run the updated tests?

Sorry for the late reply, I'm quite busy with teaching and work

Did the rebase, though.

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.

2 participants