MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

jordanstephens

Member since
jordanstephens

Recent Docs Activity

View all activity
Page Date Comment

307 Temporary Redirect


Using Fetch


Update last revision to prevent `Uncaught TypeError` when `response.headers.get("content-type")` is `null`

Using Fetch


Change `content-type` header condition to check for `application/json` to be a substring of the `content-type` header, but not necessarily equal to it. This allows for header values such as `application/json; charset=utf-8` to pass the condition.