diff --git a/src/lib/fetchDevel.js b/src/lib/fetchDevel.js index 57e23df5..f115c2b0 100644 --- a/src/lib/fetchDevel.js +++ b/src/lib/fetchDevel.js @@ -89,7 +89,7 @@ async function fetchDevel(url, fetchOptions) { }; const contentTypeHeader = contentObj.response.headers["content-type"]; - const contentType = contentTypeHeader && contentTypeHeader[0].split(";"); + const contentType = contentTypeHeader && contentTypeHeader.split(";")[0]; if (contentType === "application/json") { contentObj.response.bodyJson = await res.json(); } else {