Skip to content

Commit

Permalink
fix(fetchDevel): fix application/json detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Oct 24, 2024
1 parent 46273db commit cc0390a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/fetchDevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc0390a

Please sign in to comment.