diff --git a/src/accept.ts b/src/accept.ts index e21b787..b795405 100644 --- a/src/accept.ts +++ b/src/accept.ts @@ -271,7 +271,7 @@ export const getAcceptableMediaTypes = (header: string): JsonApiMediaType[] => { const { ext, profile, ...rest } = mediaType.parameters; - if (Object.keys(rest).length === 0) { + if (Object.keys(rest).length !== 0) { return accept; }