Skip to content

Commit

Permalink
core: Don't use buffer to make a blob (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting committed Nov 30, 2021
1 parent 6e4c1e4 commit 6956bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body.js
Expand Up @@ -131,7 +131,7 @@ export default class Body {
*/
async blob() {
const ct = (this.headers && this.headers.get('content-type')) || (this[INTERNALS].body && this[INTERNALS].body.type) || '';
const buf = await this.buffer();
const buf = await this.arrayBuffer();

return new Blob([buf], {
type: ct
Expand Down

0 comments on commit 6956bf8

Please sign in to comment.