java - How to have Jersey pass malformed headers -
i'm using jersey 1.12 , have endpoint may or may not receive malformed headers clients don't control (for instance "content-type":"application/json; bla-bla"
) bla-bla
malformed spec requires parameters have values i.e. bla-bla=value
, jersey output
"status": 400, "message": "bad content-type header value: 'application/json; bla-bla'"
i can write filter tackle suggested here, here , here wonder if there's way have jersey ignore malformed header in cases i'm not interested in it's value?
since there's apparently no solution ended wrapping servletrequest in 1 of our application's filters kinda what's suggested here have return modified header needed.
as workaround guess it's fine , not very intrusive still wonder if there better way?
Comments
Post a Comment