We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcc72b commit 03b4b70Copy full SHA for 03b4b70
lib/request.js
@@ -37,7 +37,9 @@ export default class Request {
37
}
38
39
async buffer(url, options = {}) {
40
- return this.fetch(url, options).then(res => res.buffer());
+ const res = await this.fetch(url, options);
41
+ const buffer = await res.arrayBuffer();
42
+ return Buffer.from(buffer);
43
44
45
async text(url, options = {}) {
0 commit comments