Commit cb0121c8 authored by Jure's avatar Jure

Merge branch 'fix-delete-response-headers' into 'master'

fix(client): cover case of no content-type

See merge request !473
parents 76755edc 71ffb5a7
Pipeline #10680 passed with stages
in 13 minutes and 10 seconds
......@@ -5,7 +5,8 @@ import endpoint from './endpoint'
import getToken from './token'
const parse = response => {
if (response.headers.get('content-type').includes('application/json')) {
const contentType = response.headers.get('content-type')
if (contentType && contentType.includes('application/json')) {
return response.json()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment