core: Don't use buffer to make a blob (#1402)

This commit is contained in:
Jimmy Wärting 2021-11-30 10:40:04 +01:00 committed by GitHub
parent 6e4c1e4f67
commit 6956bf868b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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