Empty media type in HTTP 200 responses #4294
dmandalidis
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi again, Any feedback on this? Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
RESTEASY-3178 introduced an exception whenever an HTTP 200 response is received without a
Content-Type
response header.However, based on my understanding, this sort of handling is stricter than the HTTP specification which does not mandate such a header. Although weird, an HTTP 200 response without a
Content-Type
is valid.I haven't checked the implications, but I think RESTeasy is safe to assume
application/octet-stream
ifContent-Type
header is not present in HTTP 200 responses.Quoting RFC9110:
also RFC7231 states that the response can be empty (philosophically, what's the content-type of an empty response? :) ).
Thanks for reading,
Dimitris
cc @jamezp
Beta Was this translation helpful? Give feedback.
All reactions