0👍
✅
In one instance you’re sending an object, in the other a string. Although they will both be transferred as a string eventually, when you pass the object, the ContentType
is set under the hood to application/json
.
That being said, if you set the ContentType
to application/json
for the one you’re passing as a string, it will sort the issue.
Source:stackexchange.com