You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest to automatically set header Content-type: application/json when calling prepareJsonPayload. Typically when doing post as json.
What do you think? I could prepare PR for this change.
The text was updated successfully, but these errors were encountered:
I totally agree, but this would introduce backwards compatibility break. So we need (even its ugly) another parameter for doing this, like $contenTypeJson which is false by default.
I agree with new method. Because although I think it's right to set headers in prepareJsonPayload it isn't that flexible. That's also the reason why I haven't pushed to PR.
I would suggest to automatically set header
Content-type: application/json
when callingprepareJsonPayload
. Typically when doing post as json.What do you think? I could prepare PR for this change.
The text was updated successfully, but these errors were encountered: