In my opinion, Bruno shouldn't patch a faulty JSON string, since it restrains its range of use, notably when working with poorly designed APIs.
Moreover, other API clients (Postman, insomnia) don't have this behavior, so it could prevent one from adopting Postman.
The fix consists in adding a transformRequest to the Axios instance that prevents the default behavior if the content type is "application/json" and the body is a string.
Description
This pull request addresses the issue https://github.com/usebruno/bruno/issues/2043.
It is also related to this one https://github.com/axios/axios/issues/4034
In my opinion, Bruno shouldn't patch a faulty JSON string, since it restrains its range of use, notably when working with poorly designed APIs.
Moreover, other API clients (Postman, insomnia) don't have this behavior, so it could prevent one from adopting Postman.
The fix consists in adding a transformRequest to the Axios instance that prevents the default behavior if the content type is "application/json" and the body is a string.