I'm using Jersey 1.12 and have an endpoint that may or may not receive malformed headers from clients that i don't control (for instance "Content-Type":"application/json; bla-bla"
)
Obviously bla-bla
is malformed as the spec requires parameters to have values as well i.e. bla-bla=value
and thus Jersey will output something like
"status": 400,
"message": "Bad Content-Type header value: 'application/json; bla-bla'"
I can write a filter to tackle this as suggested here, here and here but I wonder if there's a way to have Jersey just ignore the malformed header all together in cases where i'm not interested in it's value?