• Ray Schamp's avatar
    Fix JSON response parsing in IE · b89d6445
    Ray Schamp authored
    Fixes #654
    
    IE does not honor responseType: 'json', and will not parse responses as JSON unless json data is present in the request. For some reason this issue can also be solved by including a `json` attribute on the xhr request, but if that's present, url encoded form data is overwritten with the contents of the json.  So just try to parse the response ourselves if it looks like it wasn't parsed.
    
    See https://github.com/Raynos/xhr/issues/123
    b89d6445
api.js 3.2 KB