This particular application is returning content-type
headers in the format application/json;charset=UTF-8
I'm not sure if this could change and get reduced to 'application/json' only or may be if I reuse this code somewhere else for?
My code is
response.headers['Content-Type'].match(/text\/application//json/i)
How to best check for content type application/json???