I have checked the following:
This bug is:
Bruno version
v1.40.0
Operating System
Windows 10
Describe the bug
After upgrading from v1.39.1 to version v1.40.0, modifying the response body via res.setBody() in post-script scripts fails to take effect when the response's Content-Type is set to application/json, while other Content-Types function correctly.
.bru file to reproduce the bug
No response
Screenshots/Live demo link

