From e4899b6ba417a801ce3d9128c9769e855487682f Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Wed, 8 Jul 2020 04:25:34 +0200 Subject: perf(cli/body): improve .arrayBuffer() speed (#6669) --- cli/js/web/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/js/web/request.ts') diff --git a/cli/js/web/request.ts b/cli/js/web/request.ts index a9dcce2de..7ea6a9ecd 100644 --- a/cli/js/web/request.ts +++ b/cli/js/web/request.ts @@ -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; -- cgit v1.2.3