Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncBody better differentiates plain vs multipart forms
FromHttpMessageWriter and MultipartHttpMessageWriter both support MultiValueMap except the former supports String values only. This presents an issue since either full generic type information must be provided, which is cumbersome on the client side, or if left out there is no good way to order the writers to make a proper decision. This commit: - refines the canWrite behavior of to not a accept MultiValueMap without proper generic information unless the MediaType is explicitly set providing a strong hint. - modifies MultipartHttpMessageWriter to be configured with a FormHttpMessageWriter so it can write both plan and multipart data with the ability to properly differentiate based on actual map values. Issue: SPR-16131
- Loading branch information
1 parent
e5c8dc0
commit 8083eaa
Showing
8 changed files
with
161 additions
and
65 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
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
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
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
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.