-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Harmonize the usage of charset in the Content-Type headers for RESTEasy Reactive #25390
Conversation
@FroMage @stuartwdouglas can I get a review of this please? Thanks |
|
||
// TODO: does this need to be more complex? | ||
private boolean isStringMediaType(MediaType mediaType) { | ||
return mediaType.getType().equals("application") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All application/*
types require a charset? That doesn't seem right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which ones should in your opinion. JSON and XML?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to be much more strict
...e/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/EncodedMediaType.java
Outdated
Show resolved
Hide resolved
de8ac98
to
49ec0e2
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This comment has been minimized.
This comment has been minimized.
…sy Reactive The idea is that we know only append it for specific response media types. Before this change, the charset was added depending on how the return type of the Resource method Relates to: quarkusio#25295
I wonder if this is what's caused a Renarde test to fail when bumping from 2.9.0 to 2.9.1:
|
The change should only affect the charset... |
I would have thought too, but given that a charset appeared… Lemme try to figure it out. |
Actually it shouldn't be that, because it works in 2.9.1 and 2.9.2 as well, but it's broken in |
The idea is that we know only append it for specific response media types.
Before this change, the charset was added depending on how the return type
of the Resource method
Relates to: #25295