diff --git a/dist/index.js b/dist/index.js index 8b29262..df6fc73 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5068,7 +5068,7 @@ async function getResponseData(response) { if (/application\/json/.test(contentType)) { return response.json().catch(() => response.text()).catch(() => ""); } - if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + if (!contentType || /^(text\/|charset=utf-8)$/.test(contentType)) { return response.text(); } return getBufferResponse(response); @@ -31286,4 +31286,4 @@ module.exports = parseParams /******/ /******/ })() ; -//# sourceMappingURL=index.js.map \ No newline at end of file +//# sourceMappingURL=index.js.map