perf(cli/body): improve .arrayBuffer() speed (#6669)

This commit is contained in:
Marcos Casagrande 2020-07-08 04:25:34 +02:00 committed by GitHub
parent cb98a59452
commit e4899b6ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 23 deletions

View file

@ -71,7 +71,7 @@ export class Request extends body.Body implements domTypes.Request {
}
const contentType = headers.get("content-type") || "";
super(b, contentType);
super(b, { contentType });
this.headers = headers;
// readonly attribute ByteString method;