- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 10 Mar 2021 01:17:32 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 March 2021 09:17:44 UTC
In https://github.com/web-platform-tests/wpt/pull/27837#discussion_r588170896 @mfalken suggested that synthetic responses should receive validation similar to network responses. A simple example I can think of would be:
```js
e.respondWith(new Response("...", { headers: [["content-length":"1"],["content-length":"2"]] }))
```
I tend to think this should be fine and we just ignore the `content-length` header as it's pointless for synthetic responses. Am I missing something here?
(I'm going to merge that PR as it matches the specification as written, but I figured I should at least file a follow-up.)
--
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
Received on Wednesday, 10 March 2021 09:17:44 UTC