feat(http): optimize parameter parsing by forfreeday · Pull Request #5483 · tronprotocol/java-tron
What does this PR do?
optimize incorrect content-type comparisons.
Why are these changes required?
When a client requests an interface, if it is an application/json request, it may be written in a variety of ways, including:
application/jsonapplication/json;charset=iso-8859-1application/json;charset=utf-8
When determining the content-type of a request, the interface needs to be compatible with the variable writing ways of the requests.
This PR has been tested by:
- Unit Tests
- Manual Testing
Follow up
Extra details