@whatwg-node/node-fetch 0.0.7-alpha-20230208145746-08ecb64 → 0.0.7-alpha-20230208150005-0bd8aaf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -569,7 +569,7 @@ class PonyfillBody {
|
|
569
569
|
for await (const chunk of _body.readable) {
|
570
570
|
chunks.push(chunk);
|
571
571
|
}
|
572
|
-
return Buffer.concat(chunks).toString(this.contentType
|
572
|
+
return Buffer.concat(chunks).toString('utf-8' /* use this.contentType soon */);
|
573
573
|
}
|
574
574
|
const blob = await this.blob();
|
575
575
|
return blob.text();
|
package/index.mjs
CHANGED
@@ -563,7 +563,7 @@ class PonyfillBody {
|
|
563
563
|
for await (const chunk of _body.readable) {
|
564
564
|
chunks.push(chunk);
|
565
565
|
}
|
566
|
-
return Buffer.concat(chunks).toString(this.contentType
|
566
|
+
return Buffer.concat(chunks).toString('utf-8' /* use this.contentType soon */);
|
567
567
|
}
|
568
568
|
const blob = await this.blob();
|
569
569
|
return blob.text();
|
package/package.json
CHANGED