- From: Boris Zbarsky <notifications@github.com>
- Date: Wed, 09 Aug 2017 05:01:02 +0000 (UTC)
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 August 2017 05:01:27 UTC
> If you made the headers array TRULY case insensitive e.g. request.headers['Content-type'] request.headers['content-type'] request.headers['Content-Type'] request.headers['Content-tYpe'] all come back with the same value They do, if `request.headers` is a `Headers` object: they come back undefined. I'm guessing that in your case `request.headers` is provided by some library that populates it based on `getAllResponseHeaders` and just stuffs whatever it gets from that API in there instead of defining `request.headers` such that it does case-insensitive lookups (which it could, if it really wanted to). -- 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/xhr/issues/146#issuecomment-321153224
Received on Wednesday, 9 August 2017 05:01:27 UTC