Skip to content

Commit

Permalink
expanded accepted mime types for rdf to text/turtle, application/trig…
Browse files Browse the repository at this point in the history
…, application/n-triples, application/n-quads, text/n3
  • Loading branch information
s-tittel committed Jul 31, 2023
1 parent 7e11d7c commit f5fe517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export class Loader {
await parse(input)
}

fetchRDF(url: string, accept = 'text/turtle'): Promise<string> {
fetchRDF(url: string): Promise<string> {
return fetch(url, {
headers: {
'Accept': accept
'Accept': 'text/turtle, application/trig, application/n-triples, application/n-quads, text/n3'
},
signal: this.abortController?.signal
}).then(resp => {
Expand Down

0 comments on commit f5fe517

Please sign in to comment.