mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 23:48:12 +08:00
check if accept type in content type string (#589)
This commit is contained in:
@@ -35,7 +35,7 @@ const doFetch = async (url, acceptType) => {
|
|||||||
Accept: acceptType
|
Accept: acceptType
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
if (res.ok && res.headers.get("Content-Type") === acceptType) {
|
if (res.ok && res.headers.get("Content-Type").includes(acceptType)) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
// else an error
|
// else an error
|
||||||
|
|||||||
Reference in New Issue
Block a user