Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lenient mode to MediaType parser
Users often find it surprising that methods like message.contentType() can throw IllegalArgumentException when the media type is invalid. So this adds a MediaType.parseLeniently() method that tries to recover from invalid media type strings and uses it in such cases. Fixes #83
- Loading branch information