From 9cb87bf9eaa551893c85a16ffc04de165cd0d0d5 Mon Sep 17 00:00:00 2001 From: Abin K Paul Date: Sun, 11 Sep 2022 19:17:26 +0530 Subject: [PATCH] Add content-type to response body info --- fetch.bs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fetch.bs b/fetch.bs index a5c2cb26c..79ff503cd 100644 --- a/fetch.bs +++ b/fetch.bs @@ -346,6 +346,9 @@ following items: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
decoded size (default 0)
A number. +
content + type (default empty string) +
A string.

To @@ -4518,6 +4521,14 @@ steps: response's has-cross-origin-redirects is true; otherwise response's status. +

  • Let body info's content type be the + empty string if response's type is "opaque" or + if fetchParams's request's mode is + "navigate" and response's + has-cross-origin-redirects is true; otherwise result of + extracting a MIME type from response's + header list. +

  • If fetchParams's request's initiator type is not null, then mark resource timing given timingInfo, request's