Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] Support for Accept-Charset



On Tue, Apr 24, 2018 at 6:43 AM, Christian Kaltepoth <christian@xxxxxxxxxxxx> wrote:
Hi Santiago,

I agree that this issue needs more investigation. It looks like there are good argument for both preferring "Accept-Charset" and "Accept" with a charset parameter.

However, it is very weird that JAX-RS currently completely ignores "Accept-Charset" in the default case (not using Request.selectVariant()) although it is defined in RFC2616.

To sum up the facts:
  • RFC2616 explicitly defines "Accept-Charset" as the way for the client to request a preference for the charset.
  • There are different opinions about whether the "charset" media type parameter is allowed with the "Accept" header or not.
Does anyone know how the different JAX-RS implementations handle the "Accept-Charset" parameter? Is any implementation actually using it for something other than Request.selectVariant()?

RESTEasy currently uses "Accept-Charset" for Request.selectVariant() only.

Cheers



--

Alessio Soldano

Associate Manager

Red Hat


Back to the top