diff options
author | Marcos Casagrande <marcoscvp90@gmail.com> | 2020-07-08 04:25:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 22:25:34 -0400 |
commit | e4899b6ba417a801ce3d9128c9769e855487682f (patch) | |
tree | e610fc41996679ed9e863cddee028a0a22c36fa8 /cli/js/web/request.ts | |
parent | cb98a594522e44fca885ca94ffdcc181ad902603 (diff) |
perf(cli/body): improve .arrayBuffer() speed (#6669)
Diffstat (limited to 'cli/js/web/request.ts')
-rw-r--r-- | cli/js/web/request.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |