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
Aura\Web\Request\Content has a type property directly from $_SERVER['CONTENT_TYPE'].
In my requests however these look like: application/json; charset=utf-8.
The content does not get parsed with the built in decoder, because: "application/json" != "application/json; charset=utf-8".
For my application I can. But currently this looks like a bug.
If I send a PUT request with application/json; charset=utf-8, then use $content->get() it will return the JSON data as a string, while I would expect the decoder to work.
Aura\Web\Request\Content
has a type property directly from$_SERVER['CONTENT_TYPE']
.In my requests however these look like:
application/json; charset=utf-8
.The content does not get parsed with the built in decoder, because:
"application/json" != "application/json; charset=utf-8"
.Perhaps the content class should split the content type over two properties, type and charset.
The text was updated successfully, but these errors were encountered: