- From: Nate Chadwick <notifications@github.com>
- Date: Thu, 03 Aug 2017 21:56:12 +0000 (UTC)
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 3 August 2017 21:56:35 UTC
This broke one of our tools. It was especially confusing to debug as the http header was in fact "Content-Type" on the response. ``` var isJsonResp = response.headers["Content-Type"] == "application/json"; var resp = { data: isJsonResp ? JSON.parse(response.data) : response.data, ``` -- 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-320100924
Received on Thursday, 3 August 2017 21:56:35 UTC