You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guard valid content type check against bad Content-Type
Avoid `undefined method 'start_with?' for nil:NilClass` in
`Rack::MediaType` `strip_doublequotes` when given a bad content type.
Given:
Clients MUST send all JSON:API data in request documents with the header
Content-Type: application/vnd.api+json without any media type
parameters.
Clients MUST ignore any parameters for the application/vnd.api+json
media type received in the Content-Type header of response documents.
We can just check if the content type == `application/vnd.api+json`.
0 commit comments