Closed Aaike closed 9 years ago
The responseType used to default to json , now it defaults to null when no Content-Type is present in the response header.
responseType
json
null
This causes users to have to manually parse the response.content using JSON.parse()
response.content
The user did have a content-type, it was just an incorrect one. so not setting responseType to json was the correct behavior. plus this scenario is covered by the unit tests.
The
responseType
used to default tojson
, now it defaults tonull
when no Content-Type is present in the response header.This causes users to have to manually parse the
response.content
using JSON.parse()