diff --git a/src/core/http_client/client.ts b/src/core/http_client/client.ts index bb1c081..ebf9d8c 100644 --- a/src/core/http_client/client.ts +++ b/src/core/http_client/client.ts @@ -47,7 +47,7 @@ async function translateResponse( if (buf.length === 0) { responseBodyType = 'empty'; responseBodyValue = undefined; - } else if (saidContentType === CONTENT_TYPE_JSON) { + } else if (saidContentType?.includes(CONTENT_TYPE_JSON)) { responseBodyType = 'json'; responseBodyValue = toJson(buf); } else if (saidContentType?.includes(CONTENT_TYPE_HTML)) {