Skip to content

res.setBody() not working when content-type is application/json #4287

@lonnyzhang423

Description

@lonnyzhang423

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying

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

Image

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions