Skip to content

Commit 6602216

Browse files
committed
fix(accept): drop media types which have unknown parameters
1 parent a168133 commit 6602216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accept.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const getAcceptableMediaTypes = (header: string): JsonApiMediaType[] => {
271271

272272
const { ext, profile, ...rest } = mediaType.parameters;
273273

274-
if (Object.keys(rest).length === 0) {
274+
if (Object.keys(rest).length !== 0) {
275275
return accept;
276276
}
277277

0 commit comments

Comments
 (0)