summaryrefslogtreecommitdiff
path: root/cli/js/web/fetch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/fetch.ts')
-rw-r--r--cli/js/web/fetch.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts
index 156c218a4..33cf12069 100644
--- a/cli/js/web/fetch.ts
+++ b/cli/js/web/fetch.ts
@@ -110,8 +110,9 @@ export class Response extends Body.Body implements domTypes.Response {
}
const contentType = headers.get("content-type") || "";
+ const size = Number(headers.get("content-length")) || undefined;
- super(body, contentType);
+ super(body, { contentType, size });
this.url = url;
this.statusText = statusText;