Skip to content

Commit

Permalink
fix: accept application/ld+json when fetching context (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Haninn <[email protected]>
  • Loading branch information
nghaninn and Haninn authored Aug 15, 2024
1 parent e6af390 commit f060ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3.0/validate/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const documentLoader = async (url: string) => {
for (const url of preloadedContextList) {
contexts.set(
url,
fetch(url, { headers: { accept: "application/json" } }).then((res: any) => res.json()),
fetch(url, { headers: { accept: "application/json, application/ld+json" } }).then((res: any) => res.json()),
);
}
}
Expand Down

0 comments on commit f060ff6

Please sign in to comment.