Goliath JSON middleware incompatible with JSONAPI
dankozlowski opened this issue · 2 comments
dankozlowski commented
Because the content-type for JSONAPI is application/vnd.api+json
, the middleware does not identify the response as JSON. Quick fix, just need to add vnd.api+json
to the regex that #json_response?
uses to determine the content type.
dankozlowski commented
@igrigorik Good catch, thank you. I've updated the original issue, and I'll have a PR for the fix ready shortly.