In my case I had no option to add Content-Type header, so I found another solution. It was to implement MessageBodyReader