Re: [whatwg/fetch] Is a missing HeadersInit treated differently from an empty one? (#479)

So in the case of `Response` objects I don't think it would make a difference to change the "present check" to an "empty check". A `Response` object always starts out without headers. It's not clear to me what step 6.1 of https://fetch.spec.whatwg.org/#dom-response would actually do. I think that's a no-op and potentially some old copypasta (would require some digging).

In the case of `Request` objects it seems like it might be problematic as we want to be able to know whether you are just copying a request or modifying it. And when you're modifying it, you might not want to remove all the headers or that might be exactly what you want. If we only have an "empty check", those semantics would go lost, I think. Or am I missing something?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/479#issuecomment-278105521

Received on Tuesday, 7 February 2017 19:05:14 UTC