Making sure that we either except text/xml or json by default