- From: Boris Zbarsky <notifications@github.com>
- Date: Fri, 03 Feb 2017 06:12:43 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 3 February 2017 14:13:17 UTC
I guess here's my real concern. If the `Response` constructor just took three arguments there, a `status`, `statusText`, and `HeadersInit`, then passing nothing would be exactly equivalent to passing `{}` for the `HeadersInit`, per IDL spec. But because the three are packaged up in a `ResponseInit` dictionary, suddenly passing nothing for the `HeadersInit` _can_ be different from passing `{}` (arguably a bug in IDL), and fetch in fact gives them different behavior... This dependency on whether arguments are passed individually or in a dictionary is deeply unfortunate from my point of view. -- 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-277255521
Received on Friday, 3 February 2017 14:13:17 UTC