From 1dff376df899e64d93bef261ec87e7abe60ea551 Mon Sep 17 00:00:00 2001 From: Yoh Kenn Date: Tue, 12 Jan 2021 21:10:38 +0800 Subject: [PATCH] Update fetchJsonLd.ts --- src/hydra/fetchJsonLd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra/fetchJsonLd.ts b/src/hydra/fetchJsonLd.ts index 50280c8..dab9095 100644 --- a/src/hydra/fetchJsonLd.ts +++ b/src/hydra/fetchJsonLd.ts @@ -18,7 +18,7 @@ export default async function fetchJsonLd( const { headers, status } = response; const contentType = headers.get("Content-Type"); - if (204 === status) { + if ([202, 204].includes(status)) { return Promise.resolve({ response }); } if (500 <= status || !contentType || !contentType.includes(jsonLdMimeType)) {