|
|
@ -99,7 +99,9 @@ export async function readResource( |
|
|
|
try { |
|
|
|
try { |
|
|
|
const fetch = guaranteeFetch(options?.fetch); |
|
|
|
const fetch = guaranteeFetch(options?.fetch); |
|
|
|
// Fetch options to determine the document type
|
|
|
|
// Fetch options to determine the document type
|
|
|
|
const response = await fetch(uri); |
|
|
|
const response = await fetch(uri, { |
|
|
|
|
|
|
|
headers: { accept: "text/turtle, */*" }, |
|
|
|
|
|
|
|
}); |
|
|
|
if (response.status === 404) { |
|
|
|
if (response.status === 404) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
isError: false, |
|
|
|
isError: false, |
|
|
|