I'm using Jersey to expose a REST API.
I get HTTP error 415 : Unsupported Media Type when I try to send a request to the following entry point :
@POST
@Path("check")
@Produces("application/json")
Response checkPassword(char[] password);
But when I turn my password into String, It works fine :
Response checkPassword(String password);
The idea of using a char[]
is to apply some good practices as stated here : Why is char[] preferred over String for passwords?
Does anyone knows why I get 415 with char []
?
Regards