We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d1224 commit 373a55fCopy full SHA for 373a55f
1 file changed
src/utils/retrieve.js
@@ -77,7 +77,7 @@ export default async (url, options = {}) => {
77
}
78
const contentType = res.headers.get('content-type')
79
const buffer = await res.arrayBuffer()
80
- const text = buffer ? Buffer.from(buffer).toString().trim() : ''
+ const text = buffer ? new TextDecoder().decode(buffer).trim() : ''
81
82
if (/(\+|\/)json/.test(contentType)) {
83
try {
0 commit comments