New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POJO conversion doesn't work on Content-Type = application/json; charset=UTF-8 #1165
Comments
@kst9395 is this causing an issue for you? Is there a way you can provide an example where this is not working? |
@kst9395 you are correct, this is a valid bug. What version of JavaLite are you using? |
Hi @ipolevoy , I am using javalite version: 2.5-j8. |
got it, no prob. I implement a fix and make a new release next week |
@kst9395 this is fixed, you can pull a current snapshot 2.6-j8-SNAPSHOT for Java8 or 3.0-SNAPSHOT for Java16. |
In
ControllerRunner#getRequestObject
method, the implicit conversion from json to pojo will only happen if theContent-Type
request header is equals toapplication/json
.The conversion of request body to Map in
HttpSupport
however uses.contains
Should the
ControllerRunner
use the same validation logic when doing implicit conversion?The text was updated successfully, but these errors were encountered: