Enables parsing of application/hal+json as JSON#1853
Conversation
|
@janhartmann: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
|
Thanks, this looks good! I'm happy you also added a new test. |
|
I think the solution proposed in #1645 |
|
I agree, we also need to support different casing, e.g by lower casing. As og today, if the content type sent back is “Application/Json” it will not parse either. Might need another issue |
|
In #1645 I added a field jsonContentType that defaults to "application/json", but that the developer can override (a bit like the baseUrl). I think that that is a simple and flexible solution. |
This pull requests enables JSON parsing of content type
application/hal+json.https://en.wikipedia.org/wiki/Hypertext_Application_Language
TODO: