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
Preserve whitespace in Content-Type header #5641
Comments
I believe this is one of the tasks that should have been solvable by |
Thank you, @jansupol! That sounds like an interesting idea! Let me play with it and see if I can get it to work! |
@jansupol, I was able to pinpoint where the whitespace gets stripped in Jersey 2:
|
@jansupol, can you tell me how I can replace/override Jersey's MediaTypeProvider with my own? I see Jersey's
where the
I had hoped it would also consider any custom HeaderDelegateProviders declared in Do you have any recommendation for how to make this work? I noticed the same question was asked here: https://stackoverflow.com/questions/62297701/how-to-inject-custom-implementation-of-org-glassfish-jersey-spi-headerdelegatepr, but it was never answered. Thank you! |
@jansupol, what I ended up doing is extend |
Has there been any consideration given to restore/preserve the whitespace character separating the
charset=
from the semicolon (trailing the MIME type) in theContent-Type
header? Or could this be made configurable at a minimum?See https://download.oracle.com/javaee-archive/jersey.java.net/users/2013/04/17157.html where this was brought up originally.
Apologies if this was already discussed.
Thank you!
The text was updated successfully, but these errors were encountered: