core: Don't use buffer to make a blob (#1402)
This commit is contained in:
parent
6e4c1e4f67
commit
6956bf868b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue