-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTPCLIENT-2159: Fix handling of charset in ContentType for specific …
…media types * Updated ContentType to ensure that no charset is included for media types like application/octet-stream, multipart/form-data, and image/*, which do not require a charset as per the RFC. * Refactored the toString() method to properly handle the omission of charset for these media types. * Adjusted the creation methods to better handle implicit charsets and added validation for reserved characters in MIME types.
- Loading branch information
1 parent
077142a
commit c679083
Showing
2 changed files
with
267 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.