Skip to content

Commit

Permalink
fix(accept): drop media types which have unknown parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 3, 2024
1 parent a168133 commit 6602216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6602216

Please sign in to comment.