postrank-labs/goliath

Goliath JSON middleware incompatible with JSONAPI

dankozlowski opened this issue · 2 comments

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.

According to the docs, it should be application/vnd.api+json.

@igrigorik Good catch, thank you. I've updated the original issue, and I'll have a PR for the fix ready shortly.