Re: [w3c/ServiceWorker] Should synthetic responses be validated? (#1571)

If you "get" the header the value would be `1, 2` (including space). This is what a web developer would see through the `Headers` API.

The browser gets the header in the networking stack for response processing. That would not apply here as the networking stack is not involved.

The browser also gets the header in XMLHttpRequest, to set up progress events. That does apply here. As `1, 2` is failure per https://fetch.spec.whatwg.org/#header-list-extract-a-length XMLHttpRequest would say that the length is not computable for its progress events.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1571#issuecomment-799491265

Received on Monday, 15 March 2021 15:03:10 UTC