Closed JamesTrickeyD closed 4 years ago
Could you try using postRequestBodyAsJson()
and see if that solves the problem? postRequestBody
always returns a string and does not convert based on the Content-Type
automatically, but because JSON is such a common exchange format, there is the helper method postRequestBodyAsJson()
.
That did the trick! Thanks! 🙏
Description
After making a call I check postRequestBody() and it returns a string.
Steps to Reproduce
Expected Result
The object that I passed to fetch should be returned.
Actual Result
An irrelevant string is returned instead
Setup: