Closed jaime-franco closed 8 years ago
If some one has the same problem you can add in the config file
"rest": {
"supportedTypes": [ "application/json"]
}
But it will be great if the default setting is json instead of vnd.api+json
Could someone from Strongloop confirm that the fix suggested by @jaime-franco is a proper fix/workaround? Thanks!
Hi, @voitau i found the config information on this link :
https://docs.strongloop.com/display/public/LB/config.json#config.json-Remotingproperties
And i think this is a issue because in the documentation you can find a note in the rest.supportedTypes property : NOTE: 'application/vnd.api+json' is supported, but is not one of the default types.
And actually this las update change that.
Can you submit a patch so that case '*/*':
goes with case 'json':
?
Ok
Thanks for a quick fix! Is there a release with this fix planned?
Responses now are default "application/vnd.api+json", in the case in the file lib/http-context.js is the returned when accepts is /.
https://github.com/strongloop/strong-remoting/commit/d7d9a73cc77f33c13f31d3c8e57af8277e33363c