users@jersey.java.net

[Jersey] charset and space

From: D'Arcy Smith <ds_at_terratap.com>
Date: Thu, 25 Apr 2013 20:33:48 -0700

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