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

> If we're just looking at Fetch, it only branches on whether the headers member is present.

Right, and I question whether that's the right call.

> I guess you're saying it's always present since it takes a record

I'm saying I would _like_ IDL to say it's always present.  But if I actually do that, then tons of fetch tests fail, because its "present and empty" behavior is different from its "not present" behavior.  In some APIs, but not others, to add to the confusion.

-- 
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-278041540

Received on Tuesday, 7 February 2017 15:52:52 UTC