diff --git a/client/src/util/actionHelpers.js b/client/src/util/actionHelpers.js index 8c38bf97..c7e23267 100644 --- a/client/src/util/actionHelpers.js +++ b/client/src/util/actionHelpers.js @@ -35,7 +35,7 @@ const doFetch = async (url, acceptType) => { Accept: acceptType }) }); - if (res.ok && res.headers.get("Content-Type") === acceptType) { + if (res.ok && res.headers.get("Content-Type").includes(acceptType)) { return res; } // else an error