-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change default api client request body serialization
This commit makes a change in the default api client - request body serialization. The earlier code has a conversion for the request body to convert to json before triggering the APIs, without checking the content type of the request. This would make incorrect API calls if the request body is not of type JSON. This commit checks if the request body content is of type json and only convert it. If not, then send in the body unconverted, leaving the initial input as is.
- Loading branch information
Showing
2 changed files
with
27 additions
and
3 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