One solution may be using custom ContainerResponseFilter to modify the
Content-Type header to what the library required.
2013/4/26 D'Arcy Smith <ds_at_terratap.com>
> I've got:
>
> @Produces({
> MediaType.APPLICATION_JSON + "; charset=utf-8",
> MediaType.APPLICATION_XML + "; charset=utf-8",})
>
> which results in a header like:
>
> Content-Type: application/xml;charset=utf-8
>
> However some other code (a Python library) requires it to be like:
>
> Content-Type: application/xml; charset=utf-8
>
> (note the space between the ; and charset).
>
> From what I can tell the space is optional, but the Python library (out of
> our control) requires it.
>
> Any ideas on what I need to do to convince JAX-RS to spit out the space?
> Thanks,
>
> ..darcy
>