minio-hs icon indicating copy to clipboard operation
minio-hs copied to clipboard

Ignore Body of Responses to HEAD Requests as per Spec

Open gkleen opened this issue 3 months ago • 2 comments

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.

gkleen avatar Apr 02 '24 07:04 gkleen

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

donatello avatar May 01 '24 18:05 donatello

@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.

gkleen avatar May 13 '24 10:05 gkleen