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