Fixed issue when websites return JSON but return text/html as the content type