Handling cases when the server does not return content-type