mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-26 07:18:11 +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
|
||||
})
|
||||
});
|
||||
if (res.ok && res.headers.get("Content-Type") === acceptType) {
|
||||
if (res.ok && res.headers.get("Content-Type").includes(acceptType)) {
|
||||
return res;
|
||||
}
|
||||
// else an error
|
||||
|
||||
Reference in New Issue
Block a user