rails / request.js

MIT License
389 stars 28 forks source link

Allow for 'application/vnd.api+json' response. #41

Closed MatthewKennedy closed 2 years ago

MatthewKennedy commented 2 years ago

This PR adds the ability to accept application/vnd.api+json response content types, and changes the regular expression to look for content types beginning with application and ending in json.

This is useful for anyone who is using a JSON::API specific API.